Skip to content

Commit

Permalink
min: proper formatting of date values
Browse files Browse the repository at this point in the history
  • Loading branch information
Suppenhuhn79 authored May 6, 2024
1 parent 71e7934 commit 9115e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pagesnippets2.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ let pageSnippets = new function ()
while (!!rexResult)
{
let value = _getObjectValueByPath(data, rexResult[1]) ?? "";
result = result.replace(rexResult[0], value);
result = result.replace(rexResult[0], (value instanceof Date) ? value.toISOString() : value.toString());
rexResult = rex.exec(text);
}
return result;
Expand Down

0 comments on commit 9115e04

Please sign in to comment.