summaryrefslogtreecommitdiff
path: root/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'git.py')
-rw-r--r--git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.py b/git.py
index 7e7ad74..8aa9eb1 100644
--- a/git.py
+++ b/git.py
@@ -452,7 +452,7 @@ class Date:
def __init__(self, epoch, tz):
self.epoch = int(epoch)
self.tz = tz
- self.utc = datetime.datetime.fromtimestamp(self.epoch)
+ self.utc = datetime.datetime.utcfromtimestamp(self.epoch)
self.tz_sec_offset_min = int(tz[1:3]) * 60 + int(tz[4:])
if tz[0] == '-':