[perf] Write UTC dates into performance logs

Instead of writing a local date without a timezone, write a UTC
date with a trailing Z.
This commit is contained in:
Owen W. Taylor 2010-05-26 16:53:20 -04:00
parent 77fcf68ea3
commit 5b971a66ba

View File

@ -439,7 +439,7 @@ def run_performance_test():
# version here for simplicity. Using json.dump(indent=0) doesn't real # version here for simplicity. Using json.dump(indent=0) doesn't real
# improve the readability of the output much. # improve the readability of the output much.
report = { report = {
'date': datetime.datetime.now().isoformat(), 'date': datetime.datetime.utcnow().isoformat() + 'Z',
'events': events, 'events': events,
'monitors': monitors, 'monitors': monitors,
'metrics': metric_summaries, 'metrics': metric_summaries,