2023-05-29, 06:59 PM
Hey sub,
I noticed that the guide's timeline is showing military format of time rather than the system's regional setting of 12h. I checked the source code in the webpage (Version: 6.1.3.230521) and see that you're checking for the system to use am/pm in this code.
if (dateString.match(/am|pm/i) || date.toString().match(/am|pm/i)) {
//12 hour clock
militaryTime = false;
}
In Safari on my iPad and Mac these do return am/pm, as per your check. However, on my Windows 11 with Edge, the system is using a.m./p.m.
Here's the console log output:
guide.html:334 0: 12:00:00 a.m.
guide.html:346 0: 12:30:00 a.m.
Could you please update your code to look for either am/pm or a.m./p.m.?
Thanks
I noticed that the guide's timeline is showing military format of time rather than the system's regional setting of 12h. I checked the source code in the webpage (Version: 6.1.3.230521) and see that you're checking for the system to use am/pm in this code.
if (dateString.match(/am|pm/i) || date.toString().match(/am|pm/i)) {
//12 hour clock
militaryTime = false;
}
In Safari on my iPad and Mac these do return am/pm, as per your check. However, on my Windows 11 with Edge, the system is using a.m./p.m.
Here's the console log output:
guide.html:334 0: 12:00:00 a.m.
guide.html:346 0: 12:30:00 a.m.
Could you please update your code to look for either am/pm or a.m./p.m.?
Thanks