summaryrefslogtreecommitdiff
path: root/js/src/gdb
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-02-02 12:00:37 -0500
committerMatt A. Tobin <email@mattatobin.com>2018-02-02 12:00:37 -0500
commita164a1ab763fc9bd1aa603308fbdac184b9f7100 (patch)
tree59332b13537a0c006c090ae925e8d3be50bb4699 /js/src/gdb
parentd532d899a2a4dbd53d94737cb82bc636e90bea90 (diff)
downloaduxp-a164a1ab763fc9bd1aa603308fbdac184b9f7100.tar.gz
Use UTC where appropriate in python files
Diffstat (limited to 'js/src/gdb')
-rw-r--r--js/src/gdb/progressbar.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/gdb/progressbar.py b/js/src/gdb/progressbar.py
index d96a67c963..faf571ffbd 100644
--- a/js/src/gdb/progressbar.py
+++ b/js/src/gdb/progressbar.py
@@ -12,7 +12,7 @@ class ProgressBar(object):
self.limit = limit
self.label_width = label_width
self.cur = 0
- self.t0 = datetime.datetime.now()
+ self.t0 = datetime.datetime.utcnow()
self.fullwidth = None
self.barlen = 64 - self.label_width
@@ -23,7 +23,7 @@ class ProgressBar(object):
pct = int(100.0 * self.cur / self.limit)
barlen = int(1.0 * self.barlen * self.cur / self.limit) - 1
bar = '='*barlen + '>'
- dt = datetime.datetime.now() - self.t0
+ dt = datetime.datetime.utcnow() - self.t0
dt = dt.seconds + dt.microseconds * 1e-6
line = self.fmt%(self.label[:self.label_width], pct, bar, dt)
self.fullwidth = len(line)