@@ -7,7 +7,7 @@ import { IBMiMember } from "../types";
7
7
export class GetMemberInfo implements IBMiComponent {
8
8
static ID = 'GetMemberInfo' ;
9
9
private readonly procedureName = 'GETMBRINFO' ;
10
- private readonly currentVersion = 1 ;
10
+ private readonly currentVersion = 2 ;
11
11
private installedVersion = 0 ;
12
12
13
13
reset ( ) {
@@ -160,11 +160,15 @@ function getSource(library: string, name: string, version: number) {
160
160
` , rtrim( substr( Buffer, 39, 10 ) )` ,
161
161
` , rtrim( substr( Buffer, 49, 10 ) )` ,
162
162
` , timestamp_format( case substr( Buffer, 59, 1 )` ,
163
- ` when '1' then '20' else '19' end concat ` ,
164
- ` substr( Buffer, 60, 12 ) , 'YYYYMMDDHH24MISS')` ,
163
+ ` when '1' then '20' concat substr( Buffer, 60, 12 )` ,
164
+ ` when '0' then '19' concat substr( Buffer, 60, 12 )` ,
165
+ ` else '19700101000000'` ,
166
+ ` end, 'YYYYMMDDHH24MISS')` ,
165
167
` , timestamp_format( case substr( Buffer, 72, 1 )` ,
166
- ` when '1' then '20' else '19' end concat ` ,
167
- ` substr( Buffer, 73, 12 ), 'YYYYMMDDHH24MISS')` ,
168
+ ` when '1' then '20' concat substr( Buffer, 73, 12 )` ,
169
+ ` when '0' then '19' concat substr( Buffer, 73, 12 )` ,
170
+ ` else '19700101000000'` ,
171
+ ` end, 'YYYYMMDDHH24MISS')` ,
168
172
` , rtrim( substr( Buffer, 85, 50 ) )` ,
169
173
` , case substr( Buffer, 135, 1 ) when '1' then 'Y' else 'N' end` ,
170
174
` );` ,
0 commit comments