Changeset: 295 fdbozzo - 15/06/2014 15:40:51:

- Bug Fix: El método GetTimeStamp genera un error cuando el dia o mes tiene solo 1 dígito
This commit is contained in:
fdbozzo
2014-06-15 16:40:42 +02:00
parent 813bca2e48
commit f6e598e899

View File

@@ -2413,8 +2413,8 @@ DEFINE CLASS c_conversor_base AS SESSION
lnResto = lnResto % 2**5
lnSeconds = lnResto
lcTimeStamp = STR(lnYear,4) + "/" + STR(lnMonth,2) + "/" + STR(lnDay,2) + " " ;
+ STR(lnHour,2) + ":" + STR(lnMinutes,2) + ":" + STR(lnSeconds,2)
lcTimeStamp = PADL(lnYear,4,'0') + "/" + PADL(lnMonth,2,'0') + "/" + PADL(lnDay,2,'0') + " " ;
+ PADL(lnHour,2,'0') + ":" + PADL(lnMinutes,2,'0') + ":" + PADL(lnSeconds,2,'0')
ltTimeStamp = EVALUATE( "{^" + lcTimeStamp + "}" )