]> arthur.barton.de Git - bup.git/commit
Get TZ offset from C localtime, given tm_gmtoff 0.27-rc4
authorRob Browning <rlb@defaultvalue.org>
Sat, 28 Mar 2015 20:09:47 +0000 (15:09 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 28 Mar 2015 20:09:47 +0000 (15:09 -0500)
commit6da6b774b03aa0e2629931788b901ca9f5e5eb0a
tree872e91ca21fd2c6bb1769c22a605d47d4a364dff
parent1f67adce3c44e7dbcabea38de53d54f6d029e4a4
Get TZ offset from C localtime, given tm_gmtoff

If we detect that struct tm contains tm_gmtoff, use the system
localtime() to compute timezone offsets.  This may help fix problems on
platforms where Python strftime "%z" doesn't report accurate timzeone
information.

Thanks to Patrick Rouleau for reporting just such a problem on Cygwin.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
config/configure
lib/bup/_helpers.c
lib/bup/git.py
lib/bup/helpers.py