httpdate_to_datestamp() no longer needs to temporarily
authorArt Cancro <ajc@citadel.org>
Fri, 8 Feb 2008 04:04:55 +0000 (04:04 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 8 Feb 2008 04:04:55 +0000 (04:04 +0000)
commit8a4e6a208ce7931d34fded55fc1c749a0d9306e1
tree226a020627931317d89995a9b07c338d4ff298a2
parent994fc649cb2d79f2a5872b4700d6ec48131d4e67
httpdate_to_datestamp() no longer needs to temporarily
set the TZ environment variable to UTC, which is good because some systems
will fail to set it back afterwards.  Instead we grab the offset from the
global 'timezone' variable and add it to tm_sec.  mktime() will then
normalize the struct before converting to time_t.  This fixes a bug on some
systems where the time zone would appear to spontaneously switch to UTC.
webcit/fmt_date.c