Ver código fonte

pastojs: fixed %date% omitting []

git-svn-id: trunk@40107 -
Mattias Gaertner 6 anos atrás
pai
commit
1eb6ef4b27
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/pastojs/src/pas2jspparser.pp

+ 1 - 1
packages/pastojs/src/pas2jspparser.pp

@@ -144,7 +144,7 @@ begin
     '%date%':
       begin
         DecodeDate(Now,Year,Month,Day);
-        SetStr('['+IntToStr(Year)+'/'+IntToStr(Month)+'/'+IntToStr(Day)+']');
+        SetStr(IntToStr(Year)+'/'+IntToStr(Month)+'/'+IntToStr(Day));
         exit;
       end;
     '%time%':