]> 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 02:01:33 +0000 (21:01 -0500)
commitcc2233a87b7267a77716fe4bd1872bfa0bcba5ec
tree595b5dd95c388e0f00cefae0054e9c362d9e4f83
parentc3cc7537c573ee5d33df11c81a05457f07c961d0
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>
(cherry picked from commit 4443772e4a6cbce5479554e881830c500d27b17c)
lib/bup/git.py