diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-02 12:00:37 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-02 12:00:37 -0500 |
commit | c0c702a5e3284e843e680064b4c6a7280242c567 (patch) | |
tree | 59332b13537a0c006c090ae925e8d3be50bb4699 /js/src/gdb | |
parent | 45d4933f568d8814d8045852a9a1b006b912dcf7 (diff) | |
download | UXP-c0c702a5e3284e843e680064b4c6a7280242c567.tar UXP-c0c702a5e3284e843e680064b4c6a7280242c567.tar.gz UXP-c0c702a5e3284e843e680064b4c6a7280242c567.tar.lz UXP-c0c702a5e3284e843e680064b4c6a7280242c567.tar.xz UXP-c0c702a5e3284e843e680064b4c6a7280242c567.zip |
Use UTC where appropriate in python files
Diffstat (limited to 'js/src/gdb')
-rw-r--r-- | js/src/gdb/progressbar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/gdb/progressbar.py b/js/src/gdb/progressbar.py index d96a67c96..faf571ffb 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) |