浏览代码

Set default time that's not dependent on local timezone.

Jelmer Vernooij 7 年之前
父节点
当前提交
996f4dec87
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dulwich/tests/utils.py

+ 1 - 1
dulwich/tests/utils.py

@@ -126,7 +126,7 @@ def make_commit(**attrs):
     :param attrs: dict of attributes to overwrite from the default values.
     :return: A newly initialized Commit object.
     """
-    default_time = int(time.mktime(datetime.datetime(2010, 1, 1).timetuple()))
+    default_time = 1262304000  # 2010-01-01 00:00:00
     all_attrs = {'author': b'Test Author <test@nodomain.com>',
                  'author_time': default_time,
                  'author_timezone': 0,