replace jiff by chrono. add support for localization of date and time - #130
Conversation
You can use Jiff does everything else in your list. |
8f7924a to
c6786de
Compare
|
Thanks for the PR. I rebased it and added fallbacks to system tz/locale if they aren't specified in the config. @daxcore Could you review and test the new changes?
Unfortunately, I can't find any easy way to format in |
|
@rharish101 works pretty well for me. thx. built and tested successfully. 👍 |
c6786de to
57cbbdd
Compare
Summary
Hey. This pull request replaces the
jiffcrate withchrono,chrono-tz, andlocalzonefor handling time formatting, time zones, and locale customization in the clock widget. It introduces support for user-specified locales, improving i18n by allowing time display in different languages and regional formats.Motivation
This improves internationalization and configurability of the clock component.
Changes
Dependencies
chronowith unstable-locales feature for localized formatting.chrono-tzfor IANA timezone parsing.localzonefor detecting the system’s local timezone.Configuration (regreet.sample.toml)
Code (widget/clock.rs)
Benefits