Closed david-mcpherson closed 5 months ago
The convertTo24 function assumes that the time will look like "9:30 a.m.", with an "a.m/p.m" suffix.
Here's the console error for users with 24 hour time:
The solution is to make the "a.m/p.m" part of the regex optional:
PR opened: https://github.com/mlool/workday-calendar-extension/pull/6
The convertTo24 function assumes that the time will look like "9:30 a.m.", with an "a.m/p.m" suffix.
Here's the console error for users with 24 hour time:
The solution is to make the "a.m/p.m" part of the regex optional: