Fix: What's New entries show 21st rather than 22nd
What does this MR do and why?
Fix: What's New entries show 21st rather than 22nd
The reason is that when calling new Date() on a string, a date of the form 'YYYY-MM-DD' is parsed as UTC meanwhile a date of the form 'MM/DD/YYYY' is parsed in local timezone. Similar issue
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/Date
- Interesting enough Node.js which we use to run our local jest files does work on on local time zone.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Change your time zone to a US one
- Run GDK and go to HELP/What's new.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #421061 (closed)
Edited by Alper Akgun