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/tests/lib/progressbar.py | |
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/tests/lib/progressbar.py')
-rw-r--r-- | js/src/tests/lib/progressbar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/tests/lib/progressbar.py b/js/src/tests/lib/progressbar.py index 29361660d..da578783d 100644 --- a/js/src/tests/lib/progressbar.py +++ b/js/src/tests/lib/progressbar.py @@ -28,7 +28,7 @@ class ProgressBar(object): # field in the counters map. self.limit = limit # int: The value of 'current' equal to 100%. self.limit_digits = int(math.ceil(math.log10(self.limit))) # int: max digits in limit - self.t0 = datetime.now() # datetime: The start time. + self.t0 = datetime.utcnow() # datetime: The start time. # Compute the width of the counters and build the format string. self.counters_width = 1 # [ @@ -68,7 +68,7 @@ class ProgressBar(object): sys.stdout.write(bar + '|') # Update the bar. - dt = datetime.now() - self.t0 + dt = datetime.utcnow() - self.t0 dt = dt.seconds + dt.microseconds * 1e-6 sys.stdout.write('{:6.1f}s'.format(dt)) Terminal.clear_right() |