[tor-bugs] #11431 [Globe]: Possible time-zone problem with computing uptimes and downtimes

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Apr 7 16:37:36 UTC 2014


#11431: Possible time-zone problem with computing uptimes and downtimes
---------------------+----------------------
 Reporter:  karsten  |          Owner:  rndm
     Type:  defect   |         Status:  new
 Priority:  normal   |      Milestone:
Component:  Globe    |        Version:
 Keywords:           |  Actual Points:
Parent ID:           |         Points:
---------------------+----------------------
 Could it be that Globe interprets `last_seen` and `last_restarted` as
 datetimes in the user's local timezone?

 I looked up a random non-running relay and found the following line in its
 Onionoo details file:

 {{{
 "last_seen":"2014-04-07 08:00:00",
 }}}

 It was 18:26:00 CEST when I looked up the relay in Globe, so 16:26:00 UTC.
 Globe told me the downtime was 10 hours 26 minutes.  But it should have
 said 8 hours 26 minutes.

 Similarly, I looked up another random relay, but this time one that was
 running.  It's Onionoo details file contained this line:

 {{{
 "last_restarted":"2014-04-07 09:18:05"
 }}}

 I looked it up in Globe at 18:31:00 CEST, so 16:31:00 UTC, and Globe told
 me the uptime is 9 hours 13 minutes.  It should have said 7 hours 13
 minutes.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/11431>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list