Closed walksanatora closed 1 year ago
What is your operating system?
Arch Linux running kernel 6.3.8-arch1-1
Is the process multi-threaded at the time of invocation?
it is within a async main
from tokio so I would assume so (although it is only one thread since all futures are created then awaited)
If there are multiple threads running, which is more than likely when using tokio, then the call will fail on any Linux operating system (and most Unix-based operating systems). This is to guarantee that the program does not segfault.
is there any way to get the offset in a multi-threaded enviroment and then pass that into time for it to use
Any way to do that is unsound.
so when I do
UtcOffset::current_local_offset()
it errors out withIndeterminateOffset
but yet if I look attimedatectl
it looks llike it should work just fineusing time
0.3.22
in my project