Twitch Developer date/time format error
On the following page: https://dev.twitch.tv/console/apps
The date and time is hardcoded as
MM/DD/Y, h:mm a and does not reflect the locale chosen, but it is using my local timezone. So despite me having Swedish selected, it for example gives me: "06/05/2023, 03:42 pm" for 5 June 2023 at 15:42 UTC+2.
On the following page: https://dev.twitch.tv/console/extensions
The date and time is using the long format with forced 12 hour time in the local format, but it is using my local timezone. So using Swedish, it for example gives me "5 juni 2023 3:42 em" for 5 June 2023 at 15:42 UTC+2.
But on this following page: https://dev.twitch.tv/console
The date and time is using the correct format of the locale, but it's instead using UTC. So while using Swedish, it gives me: "2023-06-05 13:42:01" for the same 5 June 2023 at 15:42 UTC+2.
All four pages should use the same format in the locale format with the locale's choice of 12 or 24 hour format. Since this is a developer page, using the numeric format makes sense. This would be "2023-06-05 16:42:01" for the same 5 June 2023 at 15:42 UTC+2 for me using Swedish.
I can only assume that whoever made the date appear on /console/apps got the US-format "6/5/23, 3:42 pm" and didn't like the lack of leading zeros, and therefore forced the format so they could see "06/05/2023, 03:42 pm" with no regards for other locales.
But I don't assume ill intent. This is likely just a mistake. It could also be for other reasons as well.
To ensure there are leading zeros, then consider taking the format of the locale, and ensure that the units d, h, H, m, M are doubled, and unit y is not doubled. So US English `M/d/yy, h:mm a` becomes `MM/dd/y, hh:mm a` but still allowing UK English to be using `dd/MM/y, HH:mm` which will remain unchanged.