equal
deleted
inserted
replaced
26 from mozpack.chrome.manifest import ( |
26 from mozpack.chrome.manifest import ( |
27 Manifest, |
27 Manifest, |
28 ManifestLocale, |
28 ManifestLocale, |
29 parse_manifest, |
29 parse_manifest, |
30 ) |
30 ) |
31 @@ -94,17 +95,17 @@ def get_dt_from_hg(path): |
31 @@ -100,17 +101,17 @@ def get_dt_from_hg(path): |
32 # ts == "20170914215617" |
32 # ts == "20170914215617" |
33 ### |
33 ### |
34 def get_timestamp_for_locale(path): |
34 def get_timestamp_for_locale(path): |
35 dt = None |
35 dt = None |
36 if os.path.isdir(os.path.join(path, '.hg')): |
36 if os.path.isdir(os.path.join(path, ".hg")): |
37 dt = get_dt_from_hg(path) |
37 dt = get_dt_from_hg(path) |
38 |
38 |
39 if dt is None: |
39 if dt is None: |
40 - dt = datetime.datetime.utcnow() |
40 - dt = datetime.datetime.utcnow() |
41 + dt = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))) |
41 + dt = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))) |