spicy
spicy copied to clipboard
strptime does not include timezone info
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.
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
It all works fine. Thanks!
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.