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

Convert entered timestamps to ISO 8601 #70

Open
rgov opened this issue Aug 14, 2024 · 1 comment
Open

Convert entered timestamps to ISO 8601 #70

rgov opened this issue Aug 14, 2024 · 1 comment

Comments

@rgov
Copy link
Member

rgov commented Aug 14, 2024

@cgraver requests:

When entering or tweaking times in "Milestones/Stats" to populate things like "lowering_on_bottom" in the *loweringRecord.json file, if the system or calendar is used to enter the time, the time record is produced in ISO format yyyy-mm-ddThh:mm:ss.sssZ. When entered manually, it often gets entered as yyyy-mm-dd hh:mm or yyyy/mm/dd hh:mm. Is it possible to have the times, if entered in these other formats, automatically convert to show up in the interface and *loweringRecord.json as ISO format?

@webbpinner
Copy link
Contributor

webbpinner commented Aug 18, 2024

Had a similar issue a while back. added value={input.value ? moment.utc(input.value).format(dateFormat + ' ' + timeFormat) : null} to <Datetime> definition in form_elements.js. Might help. Source

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

No branches or pull requests

2 participants