Skip to content

Migrating api's to jiff #393

Answered by BurntSushi
joeydewaal asked this question in Q&A
Jul 18, 2025 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Alternatively I could deserialize into a jiff::Timestamp and use in_tz but that would mean I have to assume a timezone on the backend.

This is what I would suggest. The part that isn't clear to me is how you're getting a time zone today. RFC 3339 doesn't support time zones.

So I would just suggest deserializing into a Timestamp and using that directly. If you don't have a time zone, then you don't need to use Zoned.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@joeydewaal
Comment options

@BurntSushi
Comment options

@joeydewaal
Comment options

@BurntSushi
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants