Dear #bash and history nerds, I am iterating over dates with `$date` (or rather `$gdate` on macOS) and get a weird error.
-
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)
-
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)
Interesting. If you set TZ to UTC, it works. In Fact, any of CET,UTC,EST will work.