Files
tor/changes
Nick Mathewson c1d96358d4 Use native timegm when available.
Continue having a tor_gmtime_impl() unit test so that we can detect
any problems in our replacement function; add a new test function to
make sure that gmtime<->timegm are a round-trip on now-ish times.

This is a fix for bug #40383, wherein we ran into trouble because
tor_timegm() does not believe that time_t should include a count of
leap seconds, but FreeBSD's gmtime believes that it should.  This
disagreement meant that for a certain amount of time each day,
instead of calculating the most recent midnight, our voting-schedule
functions would calculate the second-most-recent midnight, and lead
to an assertion failure.

I am calling this a bugfix on 0.2.0.3-alpha when we first started
calculating our voting schedule in this way.
2021-07-06 13:33:05 +03:00
..
2021-01-21 13:39:40 -05:00
2020-10-27 14:47:42 -07:00
2020-11-10 17:29:37 -05:00
2020-11-02 07:15:10 -05:00
2021-01-21 23:17:31 +02:00
2021-07-06 13:33:05 +03:00
2021-03-12 11:31:36 -05:00
2020-10-28 11:48:23 -04:00
2020-11-17 07:58:26 -05:00
2021-01-21 16:06:31 -05:00
2021-02-23 12:16:58 -05:00