Bug#819342: date command fails to parse some date strings close to a DST switch

2016-03-28 Thread Ben Hutchings
On Mon, 2016-03-28 at 15:10 -0600, Bob Proulx wrote: [...] > Let's check the tzdata.  Note that TZ=Europe/London produces GMT not > UTC.  I am across the pond but AFAIK from looking at tzdata GMT has > Daylight Savings Time.  Right?  We always have DST problems around DST > changes. GMT was the ba

Bug#819342: date command fails to parse some date strings close to a DST switch

2016-03-28 Thread Bob Proulx
Michael Stone wrote: > Bob Proulx wrote: > > The "locale independent format" looks to be the problem in the above > > to me. But I think that is only your command line test as that is > > different from what I see in the tzdata postinst. > > This is where I rant that the entire -d interface shoul

Bug#819342: date command fails to parse some date strings close to a DST switch

2016-03-27 Thread Ben Hutchings
On Sun, 2016-03-27 at 12:16 -0400, Michael Stone wrote: > On Sun, Mar 27, 2016 at 02:34:26AM -0600, Bob Proulx wrote: > > > > > > > > $ date -d 00:59 > > > Sun 27 Mar 00:59:00 GMT 2016 > > > $ date -d "Sun 27 Mar 00:59:00 GMT 2016" > > > date: invalid date ‘Sun 27 Mar 00:59:00 GMT 2016’ > > Unfor

Bug#819342: date command fails to parse some date strings close to a DST switch

2016-03-27 Thread Michael Stone
On Sun, Mar 27, 2016 at 02:34:26AM -0600, Bob Proulx wrote: $ date -d 00:59 Sun 27 Mar 00:59:00 GMT 2016 $ date -d "Sun 27 Mar 00:59:00 GMT 2016" date: invalid date ‘Sun 27 Mar 00:59:00 GMT 2016’ Unfortunately that input is not in a locale independent format. That is why it cannot be read by d

Bug#819342: date command fails to parse some date strings close to a DST switch

2016-03-27 Thread Ben Hutchings
On Sun, 2016-03-27 at 02:34 -0600, Bob Proulx wrote: > Ben Hutchings wrote: > > > > $  readlink /etc/localtime > > /usr/share/zoneinfo/Europe/London > I assume that your locale is set to en_GB.UTF-8?  Could you provide > the output of locale so that we could see the other settings?  I am > interes

Bug#819342: date command fails to parse some date strings close to a DST switch

2016-03-27 Thread Bob Proulx
Ben Hutchings wrote: > $ readlink /etc/localtime > /usr/share/zoneinfo/Europe/London I assume that your locale is set to en_GB.UTF-8? Could you provide the output of locale so that we could see the other settings? I am interested in LC_TIME and LC_ALL particularly. locale > $ date -d 00:59

Bug#819342: date command fails to parse some date strings close to a DST switch

2016-03-26 Thread Ben Hutchings
Package: coreutils Version: 8.25-2 Severity: important $ readlink /etc/localtime /usr/share/zoneinfo/Europe/London $ date -d 00:59 Sun 27 Mar 00:59:00 GMT 2016 $ date -d "Sun 27 Mar 00:59:00 GMT 2016" date: invalid date ‘Sun 27 Mar 00:59:00 GMT 2016’ $ date -d 02:00 Sun 27 Mar 02:00:00 BST 2016 $