added :00 to times that are missing seconds
This commit is contained in:
parent
a28ef9edfd
commit
6e63a3f052
|
@ -20,7 +20,7 @@ FMDTOUTC(DATE,FORMAT) ; Convert Fileman Date to UTC Date Format; PUBLIC; Extrins
|
||||||
; If H, MM and S are empty, it means that the FM date didn't supply the time.
|
; If H, MM and S are empty, it means that the FM date didn't supply the time.
|
||||||
; In this case, set H, MM and S to "00"
|
; In this case, set H, MM and S to "00"
|
||||||
S:('$L(H)&'$L(MM)&'$L(S)) (H,MM,S)="00"
|
S:('$L(H)&'$L(MM)&'$L(S)) (H,MM,S)="00"
|
||||||
S UTC=Y_"-"_M_"-"_D_"T"_H_":"_MM_$S(S="":"",1:":"_S)_OFF ; Skip's code to fix hanging colon if no seconds
|
S UTC=Y_"-"_M_"-"_D_"T"_H_":"_MM_$S(S="":":00",1:":"_S)_OFF ; Skip's code to fix hanging colon if no seconds
|
||||||
I $L($G(FORMAT)),FORMAT="DT" Q UTC ; Date with time.
|
I $L($G(FORMAT)),FORMAT="DT" Q UTC ; Date with time.
|
||||||
E Q $P(UTC,"T")
|
E Q $P(UTC,"T")
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue