local-time: switch from time to jiff#31
Conversation
|
Let me know if you want me to remove the |
|
Thanks a lot for contributing! I can't wait to merge and use it from within A quick test showed that it didn't actually show the local time though, but I am looking into it to see what the issue could be. The time displayed is UTC, I should be +2h. AnswerI was looking at RustLog output, which naturally doesn't use local times (or needs configuration to do). |
|
You can also drop this outdated part of the README: 🙂 https://github.com/Byron/prodash/blob/10800f3ee3518d5c95e83c8dbe9bbc25da362bd1/README.md?plain=1#L36 |
This swaps out `time` in favor of `jiff` for getting and formatting the local time. Note that this does add the `%Z` to the format string, which will write out time zone abbreviations like `EDT` along with the local datetime itself. The `time` crate doesn't support this, but jiff's tzdb integration let's it do it.
|
@Mrmaxmeier Done! @Byron Yeah, I think |
|
Great, a new release is out and I will make |

This swaps out
timein favor ofjifffor getting and formatting thelocal time.
Note that this does add the
%Zto the format string, which will writeout time zone abbreviations like
EDTalong with the local datetimeitself. The
timecrate doesn't support this, but jiff's tzdbintegration let's it do it.