mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[FEAT]: Timezone selection in bar date/time widgets #581
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @swebra on GitHub (Mar 3, 2025).
Eligibility
Individual Commercial Use License
Suggestion
As a dev, having quick reference of UTC is nice when dealing with UTC-based data. For someone working in a different timezone, having quick reference of local company time may also be useful.
A timezone field on the date/time bar widgets would be a nice QOL improvement for these use-cases, for example allowing the addition of a second non-local-timezone time to the bar.
Alternatives Considered
Not implementing and leaving the functionality for other bars.
IMO this request still fits under the "simplicity threshold" of the built-in bar, especially in comparison to features like the date
CustomModifier.@github-actions[bot] commented on GitHub (Mar 3, 2025):
Feature requests on this repository are only open to current GitHub sponsors on the $5/month tier and above, people with a valid individual commercial use license, and approved contributors.
This issue has been automatically closed until one of those pre-requisites can be validated.
@LGUG2Z commented on GitHub (Mar 3, 2025):
I think this should be possible by adding an optional timezone configuration option and trying to match a timezone using
from_str_insensitive+ https://crates.io/crates/chrono-tz, falling back to the local time if a valid tz can't be parsed from the config.@CtByte commented on GitHub (Mar 3, 2025):
I will also add some sort of suffix on the time widget, as it would be useful.
10:35 UTCor something like this@bilogic commented on GitHub (Aug 10, 2025):
I think it makes a lot more sense use a formatting string instead of
DayDateMonthYearandTwentyFourHour... where did these come from??@CtByte commented on GitHub (Aug 10, 2025):
I think it's for users who do not want to play around with formats. Also, if you click on the clock, you can cycle between different presets.
These options are just different preset formats anyway.
@bilogic commented on GitHub (Aug 10, 2025):
Yea, but non of it let's me indicate timezone
@CtByte commented on GitHub (Aug 11, 2025):
It is true that the presets do not indicate timezone (they are in your local timezone). I would consider showing that to be for advanced users.
This is how it can be done if anyone interested:
@bilogic commented on GitHub (Aug 11, 2025):
@CtByte thanks that totally worked!