Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: testing_support/git/repo.py

Issue 533213002: Added timezone info for the start date for the fake commits. (Closed) Base URL: https://chromium.googlesource.com/infra/testing/testing_support@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing_support/__init__.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing_support/git/repo.py
diff --git a/testing_support/git/repo.py b/testing_support/git/repo.py
index 566f755987af73dd171e5824a4c2fb6c5c3c5bc4..af45bafa3032df3e7946a13069b4952f1ff3be34 100644
--- a/testing_support/git/repo.py
+++ b/testing_support/git/repo.py
@@ -6,6 +6,7 @@ import atexit
import collections
import datetime
import os
+import pytz
iannucci 2014/09/03 15:28:33 there's not pytz dep for testing_support... why no
import shutil
import subprocess
import sys
@@ -69,7 +70,7 @@ class GitRepo(object):
"""
self.repo_path = tempfile.mkdtemp(dir=self.BASE_TEMP_DIR)
self.commit_map = {}
- self._date = datetime.datetime(1970, 1, 1)
+ self._date = datetime.datetime(1970, 1, 1, tzinfo=pytz.utc)
self.to_schema_refs = ['--branches']
« no previous file with comments | « testing_support/__init__.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698