]> arthur.barton.de Git - bup.git/commit
thelpers: call tzset() after changing TZ
authorRob Browning <rlb@defaultvalue.org>
Sun, 29 Dec 2019 20:46:16 +0000 (14:46 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 19 Jan 2020 17:46:10 +0000 (11:46 -0600)
commit896c9193db2a96ff11237340dcbd47315bd5a276
tree3ee553dc6bd48cbf1966f25ae808a5d62e71c29f
parent046e45780b831d0196cc5a2045c4a3a24521b40a
thelpers: call tzset() after changing TZ

  Note: Although in many cases, changing the TZ environment variable
  may affect the output of functions like localtime() without calling
  tzset(), this behavior should not be relied on.

  -- https://docs.python.org/3/library/time.html#time.tzset

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/t/thelpers.py