[BUG] Clock doesn't show 12-hour time correctly
Step 1. Before you submit
- [x] I have read the above instructions and am sure that this is supposed to be posted here.
- [x] I've successfully updated to the latest versions following the updating guide.
- [x] I've successfully updated the system packages to the latest.
- [ ] I've ticked the checkboxes without reading their contents
Step 2. Version info
Version info
Packages:
caelestia-shell-git r909.982a5a3-1
caelestia-cli-git r264.882adb2-1
caelestia-meta r108.c1947d8-1
Caelestia:
Last commit: 1c485b7068e5323d7074350bfb091d323bbddac1
Commit message: readme: update install section for new opt
Quickshell:
quickshell 0.1.0, revision db77c71c216530159c2dcf5b269ebb4706b2e2dd, distributed by: AUR (package: quickshell-git)
Local copy of shell found:
Last merged upstream commit: b3e9bcfc2d694b34718fcc7ea985a54728cb58a7
Commit message: background: load not async Fixes #235
Last commit: e80f3652fbeba5c983b8f7434174f3cef5eb06a8
Commit message: Merge branch 'caelestia-dots:main' into main
Step 3. Describe the issue
I am American (sorry), so I use 12-hour time. When changing HH to hh for the dashboard clock, it will still display 24-hour time. After a bit of messing with it, I figured out that it will only display correctly when adding A to the string. So text: Time.format("hh") will show "21" for example, but text: Time.format("hh A") will show "09 PM". This isn't really an issue for the bar's clock, since it's all one string, but it's a bit of a pain for the dashboard, since I like the separator module and having them all in their own little modules like it was intended.
(I really like the new Bluetooth panel btw! ^_^)
Logs
There are no logs...
Reminder
- [x] I agree that it's usually impossible for others to help me without my logs.
Try text: Time.format("hh \nA")
That displays it correctly, but it's the same issue as text: Time.format("hh A"). I don't want to have to need the A at all, since hh on its own should be enough to set it as 12-hour time.
That displays it correctly, but it's the same issue as
text: Time.format("hh A"). I don't want to have to need theAat all, sincehhon its own should be enough to set it as 12-hour time.
The "A" is required to enable 12-hour format (i.e., to show AM/PM).
The "\n" is used to display text on a new line.
If you use "HH" without "A", it will show time in 24-hour format.
If you use "HH" without "A", it will show time in 24-hour format.
For HH, yes, but it will show 24-hour format regardless. I'm using hh, which, as I understand it, is the code for 12-hour time, and shouldn't require anything else to show as such. I'm not familiar with QML/QuickShell's syntax, so if the time codes are different there, that's on me, so please let me know ^_^;;