This message was deleted.
# adobe
s
This message was deleted.
a
I do not get the JSONed date represented as
"2021-02-02T18:29:57TZD"
on CF2016. I get:
"June, 21 2022 21:18:10"
Repro (https://trycf.com/gist/6c936a3a9fd496c784848a24d783ce0f/acf2016?theme=monokai):
Copy code
st = {
    d = dateConvert('local2Utc', now())
};


writeOutput(serializeJson(st));
I think perhaps you better show us a repro case of what yer actually doing, rather than just describe it...
s
On saving, the code did this:
Copy code
info.creationdttm = dateConvert("local2Utc",now());
...
queryParams[ { value=serializeJSON(info)... }]
The data stored as:
Copy code
info.creationdttm:"2021-02-02T18:29:57TZD"
Now I get the invalid error. The structure is much bigger, hence my snippets. Let me see if I can create a small example...
Your representation of the date matches mine on cf-2021. Try cf-2016. I'm trying to find an instance.
a
That output was from CF2016, Note the URL:

https://i2.paste.pics/e9428621fa7b748d0c8c80d1766957b0.png

s
The trycf.com test on 2016 does not match my results. I'm trying to find a server locally that I can run my test. I suspect a discrepancy in the date format within the serializeJSON between linux and windows - we run windows.
Never mind, I found the issue. Somehow the user-friendly output format reflecting UTC was saved as the date/time value in the JSON entry.