Today I learned that glibc has a broken %s implementation in strftime. It applies the timezone even when we want UTC...

https://github.com/curl/curl/issues/22038

%time{%s} in --write-out returns wrong epoch on non-UTC hosts · Issue #22038 · curl/curl

I did this Summary curl --write-out '%time{%s}' (and %time{%s.%f}) outputs an epoch value that is offset by the local timezone offset from UTC. On a host in Asia/Shanghai (UTC+8), the value is cons...

GitHub
@bagder oooooof, that's useful to know about. Thank you for mentioning it.