From f6e598e8993b8da247236fd814d91c373eed8ae1 Mon Sep 17 00:00:00 2001 From: fdbozzo Date: Sun, 15 Jun 2014 16:40:42 +0200 Subject: [PATCH] =?UTF-8?q?Changeset:=20295=20fdbozzo=20-=2015/06/2014=201?= =?UTF-8?q?5:40:51:=20-=20Bug=20Fix:=20El=20m=C3=A9todo=20GetTimeStamp=20g?= =?UTF-8?q?enera=20un=20error=20cuando=20el=20dia=20o=20mes=20tiene=20solo?= =?UTF-8?q?=201=20d=C3=ADgito?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- foxbin2prg.prg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foxbin2prg.prg b/foxbin2prg.prg index 77fcbdd..b410c83 100644 --- a/foxbin2prg.prg +++ b/foxbin2prg.prg @@ -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 + "}" )