Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output Format "date" and "jsDate" gives identical output as left open #37

Closed
StephanStS opened this issue Sep 21, 2020 · 3 comments
Closed
Labels

Comments

@StephanStS
Copy link
Contributor

If you set the configuration property Output Format to date or jsDate, the output is always Zulu format.
I assume that the underlying call moment().toDate() shall give a different output format.

@StephanStS StephanStS changed the title Output Format "date" and "jsDate" gives identical as left open Output Format "date" and "jsDate" gives identical output as left open Sep 21, 2020
@TotallyInformation
Copy link
Owner

using date or jsDate should give the same output, namely ISO8601. That format always outputs in Zulu (AKA UTC or GMT) time as per the standard.

@TotallyInformation
Copy link
Owner

Argh! Node-RED playing tricks on me! The output is not what it seems.

@TotallyInformation
Copy link
Owner

The output for date and jsDate ARE the same - both are JavaScript date objects. My test routine was auto-converting them to ISO format which is the default .toString for a JavaScript Date object.

So the outcome you are seeing is the expected outcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants