]> arthur.barton.de Git - bup.git/commit
git: create_commit_blob: allow timezones to be specified as 0
authorJohannes Berg <johannes@sipsolutions.net>
Sun, 19 Jan 2020 20:18:35 +0000 (21:18 +0100)
committerRob Browning <rlb@defaultvalue.org>
Mon, 11 May 2020 01:59:41 +0000 (20:59 -0500)
commit4443772e4a6cbce5479554e881830c500d27b17c
treea23676af79ea13c1aef174579d429274e7ba526c
parent8c860f3d7fd2d0e028df1c2e252366a4c9f98130
git: create_commit_blob: allow timezones to be specified as 0

Checking "if adate_tz" means that if it's 0 (UTC) then we'll
actually use localtime, which is wrong. Do this only when it's
specified as None.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/git.py