nexxbiz / JLio

The project aims to be able to run a JSON noted transformation script to transform other JSON objects.
https://JLio.online
MIT License
5 stars 1 forks source link

datetime in the concat function results in different value as if used alone #35

Closed FransVanEk closed 2 years ago

FransVanEk commented 2 years ago
[
  {
    "path": "$.sample.direct",
    "value": "=datetime()",
    "command": "add"
  },
  {
    "path": "$.sample.concat",
    "value": "=concat(datetime())",
    "command": "add"
  }
]

results in:

{
  "direct": "2021-12-08T19:30:39.177Z",
  "concat": "12/8/2021 7:30:39 PM"
}

should be

{
  "direct": "2021-12-08T19:30:39.177Z",
  "concat": "2021-12-08T19:30:39.177Z"
}
FransVanEk commented 2 years ago

added it to the jLio Repository