Browse Source

pastojs: fixed %date% omitting []

git-svn-id: trunk@40107 -
Mattias Gaertner 6 years ago
parent
commit
1eb6ef4b27
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/pastojs/src/pas2jspparser.pp

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

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