spicy icon indicating copy to clipboard operation
spicy copied to clipboard

strptime does not include timezone info

Open Mohan-Dhawan opened this issue 3 years ago • 3 comments

It seems function spicy::strptime(buf: string, format: string) : time only converts the string to UTC seconds. It should include locale or timezone seconds if Z is in the format string, like 20370913024805Z.

Mohan-Dhawan avatar Nov 17 '22 11:11 Mohan-Dhawan

Just as a note, our function is a frontend to the standard strptime. This might help fix it: https://stackoverflow.com/questions/17801403/c-strptime-ignores-timezone-when-parsing

rsmmr avatar Nov 18 '22 09:11 rsmmr

It all works fine. Thanks!

Mohan-Dhawan avatar Jan 24 '23 10:01 Mohan-Dhawan

As far as I can tell strptime still does not support extracting timezone information. Unless I am missing something let's leave this open @Mohan-Dhawan.

bbannier avatar Jan 24 '23 11:01 bbannier