about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-11-19 22:11:52 +0000
committerEric Wong <e@80x24.org>2017-11-19 22:11:52 +0000
commitc45125d239143a37a109403153b88c65c5cbf767 (patch)
tree2267bd3e413f6ef42b609ddcfdaf05e7c02f4e8d
parent60d7f657f7922457c18b46f56bcd58b8d9e56bbf (diff)
downloaddtas-c45125d239143a37a109403153b88c65c5cbf767.tar.gz
We must do this if the user does not use UTC in their time zone,
otherwise things could get a bit wacky in the display.
-rwxr-xr-xbin/dtas-console4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dtas-console b/bin/dtas-console
index c65e616..18f6c09 100755
--- a/bin/dtas-console
+++ b/bin/dtas-console
@@ -173,11 +173,11 @@ begin
       Curses.setpos(lineno += 1, 0)
       Curses.clrtoeol
       Curses.addstr(infile)
-      total = " [#{Time.at(samples / rate).strftime(tfmt)}]" if samples != 0
+      total = " [#{Time.at(samples / rate).utc.strftime(tfmt)}]" if samples != 0
       Curses.setpos(lineno += 1, 0)
       Curses.clrtoeol
       if rate != 0
-        Curses.addstr("#{Time.at(elapsed).strftime(tfmt)}#{total} #{fmt}")
+        Curses.addstr("#{Time.at(elapsed).utc.strftime(tfmt)}#{total} #{fmt}")
       else
         Curses.addstr("#{elapsed} samples #{total} #{fmt}")
       end