llvmbot monitor: Add timezone to generated timestamp
Since we are all over the world and we don't want to have
to remember where the server is.
Change-Id: I72ee99735004acde8ac378c339bc19ae71eb2833
diff --git a/monitor/bot-status.py b/monitor/bot-status.py
index b6e0f22..be1801f 100755
--- a/monitor/bot-status.py
+++ b/monitor/bot-status.py
@@ -15,6 +15,7 @@
import tempfile
import logging
import shutil
+import time
from datetime import datetime, timedelta
# The requests allows HTTP keep-alive which re-uses the same TCP connection
# to download multiple files.
@@ -173,8 +174,9 @@
temp.write("<table border=0 cellspacing=1 cellpadding=2>\n")
temp.write("<tr><td colspan={}> </td><tr>\n".format(num_columns))
if first:
- temp.write("<tr><th colspan={}>Generated {}</td><tr>\n"
- .format(num_columns, datetime.today().ctime()))
+ temp.write("<tr><th colspan={}>Generated {} ({})</td><tr>\n"
+ .format(num_columns, datetime.today().ctime(),
+ time.tzname[time.daylight]))
temp.write("<tr><td colspan={}> </td><tr>\n".format(num_columns))
first = False