Does time::OffsetDateTime::now_local()
always fail in a testing context or something? It keeps returning Err(IndeterminateOffset)
.
#rust
Edit: it's working fine when I use it in src/main.rs
.
reshared this
Does time::OffsetDateTime::now_local()
always fail in a testing context or something? It keeps returning Err(IndeterminateOffset)
.
#rust
Edit: it's working fine when I use it in src/main.rs
.
reshared this
Devon Morris
in reply to Jonathan Lamothe • • •Sensitive content
I bet it has something to do with docs.rs/time/0.3.36/src/time/sā¦
Is your `main.rs` single-threaded?
unix.rs - source
docs.rsJonathan Lamothe
in reply to Devon Morris • •Mo :ferris: :tux:
in reply to Jonathan Lamothe • • •Jonathan Lamothe
Unknown parent • •UtcOffset
not threadsafe in such an environment?Jonathan Lamothe
Unknown parent • •UtcOffset
to be manually specified.