Subject: bug#41107: date --date '20180325 02:58:00' fails

From: Julien Demaria <[email-masked]>
Date: Wed, 6 May 2020 07:59:13 +0000

Hi,

We found this very suspect behavior:

$ date --date '20180325 02:58:00'
date: invalid date `20180325 02:58:00'

but for the previous day it works...:

$ date --date '20180323 02:58:00'
Fri Mar 23 02:58:00 CET 2018

Is it a bug?

Adding -u or setting TZ seems a workaround.

Tested with version 8.28 on Ubuntu 18.04.4 LTS
and also with version 8.13 on Debian GNU/Linux 7

Thanks in advance,
Julien