top | item 39890336

(no title)

idlephysicist | 1 year ago

Something feels weird about the timezone arithmetic here, though maybe I am nuts. Take this for example:

> Notably, on Tuesday, Jun 27, 2023, we see two commits: 23:38:32 +0800 and 17:27:09 +0300. If we do the math, there is about a 9-hour difference between the two commits.

Putting it all into UTC we get:

    23:38 - 8 = 15:38
    17:27 - 3 = 14:27
That's not 9 hours by my numbers. Or another example:

> Even more damning, on 6 Oct 2022, we see the following: one commit at 21:53:09 +0300 followed by another at 17:00:38 +0800. This is only a difference in a matter of minutes!

Putting it all into UTC we get:

    21:53 - 3 = 18:53
    17:00 - 8 = 09:00
I think these timezones were swapped (accidentally) by the article's author. If we do the calculation again:

    21:53 - 8 = 13:53
    17:00 - 3 = 14:00
That _is_ a matter of minutes.

discuss

order

sihe|1 year ago

Yes, thanks for pointing this out! As somebody else already speculated, we got the two examples swapped. Already updated the post.