Dear #bash and history nerds, I am iterating over dates with `$date` (or rather `$gdate` on macOS) and get a weird error. Whenever I want to iterate over a range including April 1st, 1893, `$date` claims that 1893-04-01 is an invalid date. Is this a kind of Easter egg? A foolâs dayâs joke? No other date between 1500 and today seems to be effected.
I couldnât find any documentation of this behaviour / bug online.
Everyone on #Linux can test this by running `date --date "1893-04-01â` in their terminal (if you do, please respond to this toot)
EDIT: The behaviour only occurs if no time zone is set and if your OS is set to Berlin/Germany. It is easily solved by specifying UTC. This is due to the German Reich adopting a standard time on 1 April 1893. Clocks would have virtually jumped from 1893-03-31 23:59:59 to 1893-04-01 00:06:32. Midnight formally never happened on this day and thus the data is reported as invalid.
https://de.wikipedia.org/wiki/Gesetz_betreffend_die_Einf%C3%BChrung_einer_einheitlichen_Zeitbestimmung
#DigitalHumanities #Histodons #DigitalHistory