DEV Community

January 1st 0001 is actually January 3rd 0001 or is it?

RobL on November 18, 2023

I came across a rather strange bug in some client code yesterday which had me stumped for quite some time. They're using a date_select to present t...
Collapse
 
katafrakt profile image
Paweł Świątkowski • Edited

Heh, on my machine Time.new(1,1,1) gives:

=> 0001-01-01 00:00:00 +0124
Enter fullscreen mode Exit fullscreen mode

WTF is +0124 timezone 😅

Collapse
 
simongreennet profile image
Simon Green • Edited

The standard 15 minute offsets from UTC is only around a century old. Wikipedia states +1:24 offset was used in Warsaw before they moved to CET in 1915 (108 years ago).

en.wikipedia.org/wiki/UTC%2B01:24

Collapse
 
braindeaf profile image
RobL

Ow wow, I love this. Time in a an endless wonder.