Porting ALL my crates to Jiff #83
Replies: 2 comments
-
Before, you had this: time::date(time.year(), time.month(), time.day())?
.and_hms_opt(hour as u32, minute as u32, second as u32)
.ok_or(crate::Error::InvalidTime) Notice the cast from Now compare it to what you have now:
You're casting Also, I didn't need
And running with
I thought maybe you were misusing
And what that avoids the "invalid hour" failure, it results in a test failure:
So I dunno. What the right behavior here is I think something you'll need to debug. |
Beta Was this translation helpful? Give feedback.
-
Turns out the root cause was Thank you for being very passionate about Jiff. |
Beta Was this translation helpful? Give feedback.
-
I find Jiff API is easier and more intuitive to work with. So I ported ALL my crates from Chrono to Jiff.
refactor: port chrono to jiff · azzamsa/zman@cf3b798. No issue at all.
feat!: port chrono to jiff · azzamsa/nai@567a0b0. No issue at all.
feat: upgrade to islam v4 · azzamsa/bilal@67af05b.
All the tests runs locally, but not in Github CI
Testing using
libfaketime
stuckRunning them locally also doesn't work
Beta Was this translation helpful? Give feedback.
All reactions