Inconsistency in locale.time output #6933
Replies: 1 comment
-
Posted at 2023-12-01 by user140377 Looks ok to me, at least for german local:
What locale are you using? Posted at 2023-12-01 by @gfwilliams I think it looks the same because you're before 1pm? It does depend on what locale you have and whether you have 12 hour set in your bangle.js settings (under Locale). But looking at the (default) code at https://github.com/espruino/Espruino/blob/master/libs/js/banglejs/locale.js#L11C2-L12C36 The logic seems to be:
But then if you install a language-specific locale, you get: So I'd be tempted to change the default implementation for the Bangle to work the same way? Posted at 2024-06-06 by tev I noticed this while developing an app and thought it was odd (unless there's a locale for where this actually somehow makes sense). Especially since, as Gordon said, installing a locale seems to make it behave consistently. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-12-01 by sleepypilled_zz
Hi all! I'm confused by the disparities between these two date formats. I'm expecting the long format to also be in 24h time. Has anyone else seen this?
Beta Was this translation helpful? Give feedback.
All reactions