By ich_trink_cola
06 Apr 2023 06:40
Category: Bug Report
So just today as of writing this, i go to the shoutbox, i see "On Invalid Date", idk how that happened, but please fix it, and test across DSi and 3DS.
I did some playing around with JavaScript date formatting for the Group shoutboxes, trying to get their formats consistent, while also account for browser locales and timezones (something not previously handled well).
This code SHOULD be consistent across all browsers...
(new Date(post.date)).toLocaleString(undefined, { dateStyle: "medium", timeStyle:"short"})
However, they look something like this:
* Nintendo DSi: "Wednesday April 05, 21:18:21 GMT-0400 2023"
* Nintendo 3DS: "05 Apr 2023 11:18:21"
* Safari: "Apr 5, 2023 at 9:18 PM"
Safari is the only one meeting the JS standards. I am going to consider this newest revision to be the most accurate and leave it at that.