Fixes Displayed Times in Jobs page #2978
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change from using substring to instead having JS parse the date.
Previously entries would've appeared as such:

Take note of the last one, which is at 4:9, not how anyone would write 04:09 (or 4:09 AM even).
This was due to us parsing the string into numbers, and forgetting to place leading 0s as appropriate.
This has been fixed now, as seen in this preview:

It does so by letting the Javascript DateTime object do all the heavy lifting and work.
Furthermore, this change has a "feature" addition to it as well, as now datetimes are shown in the local datetime of the user instead of GMT, which will help keep it more readable. Furthermore respecting the users' locale, so Europeans will get DD MM YYYY and Americans MM DD YYYY, etc.

(Note the changing datetime formats based off Locale, as well as changing hours when GMT is converted to "local" timezone).