add BrokenDownTime::set_offset
and BrokenDownTime::set_iana
#78
Labels
enhancement
New feature or request
BrokenDownTime::set_offset
and BrokenDownTime::set_iana
#78
Parsing custom UTC timestamp format:
Fails with the following error:
This surprised me as I thought that zero offset would be used by default for timestamps if time zone information is not found. The
BrokenDownTime
offers some modification APIs such asset_month
,.,set_second
, however,set_offset
is missing here. This would at least allow me to do:Would it make sense to fallback to UTC offset here?
jiff/src/fmt/strtime/mod.rs
Line 806 in d5f5f45
If not, exposing
BrokenDownTime::set_offset
should suffice.The text was updated successfully, but these errors were encountered: