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

Unified Diff: infra/bots/recipes/upload_dm_results.py

Issue 2392143004: Use calendar.timegm instead of time.mktime in recipes (Closed)
Patch Set: Created 4 years, 2 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
Index: infra/bots/recipes/upload_dm_results.py
diff --git a/infra/bots/recipes/upload_dm_results.py b/infra/bots/recipes/upload_dm_results.py
index 53e68451bd5fc7743e1977b701f923eabb8da589..ebff963322ae246902e21b0cd47cbd8feee713a4 100644
--- a/infra/bots/recipes/upload_dm_results.py
+++ b/infra/bots/recipes/upload_dm_results.py
@@ -17,7 +17,7 @@ DEPS = [
]
-import time
+import calendar
DM_JSON = 'dm.json'
@@ -92,7 +92,7 @@ def RunSteps(api):
str(now.hour ).zfill(2),
revision,
builder_name,
- str(int(time.mktime(now.utctimetuple())))])
+ str(int(calendar.timegm(now.utctimetuple())))])
# Trybot results are further siloed by issue/patchset.
if builder_name.endswith('-Trybot'):

Powered by Google App Engine
This is Rietveld 408576698