summary refs log tree commit diff
path: root/.gitignore
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-04-11 17:10:47 -0400
committerJune McEnroe <june@causal.agency>2021-04-11 17:10:47 -0400
commit18e9dcbf8479242c16fe94dfca5da5dbb3b93a01 (patch)
tree3c4393288576a6cdb70d1a9da61c501da5dc9041 /.gitignore
parentRemove unnecessary capture group in URL regex (diff)
downloadbubger-18e9dcbf8479242c16fe94dfca5da5dbb3b93a01.tar.gz
bubger-18e9dcbf8479242c16fe94dfca5da5dbb3b93a01.zip
Parse dates in a hopefully more portable fashion
On GNU, struct tm doesn't have tm_gmtoff and %z or %Z in strptime
do nothing. mktime(3) interprets the struct as local time, regardless
of any tm_gmtoff, except on FreeBSD. Parse the zone portion of the
date manually, subtract it from the struct tm fields, and call
timegm(3). While here, correctly parse the optional seconds portion
of the time.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions