parse-datetime.y - Military Timezones are inverted from the correct sense

2019-08-09 Thread Neil Hoggarth
I have observed incorrect handling of "Military" timezones when exercising the --date=... option of the GNU coreutils "date" utility. I believe the underlying problem is with initialization of "military_table[]" in the parse-datetime.y file of gnulib. In Military Time, timezone letters "A" through

Re: parse-datetime.y - Military Timezones are inverted from the correct sense

2019-08-09 Thread Assaf Gordon
Hello, On 2019-08-09 5:31 a.m., Neil Hoggarth wrote: I have observed incorrect handling of "Military" timezones when exercising the --date=... option of the GNU coreutils "date" utility. I believe the underlying problem is with initialization of "military_table[]" in the parse-datetime.y file of

Re: parse-datetime.y - Military Timezones are inverted from the correct sense

2019-08-09 Thread Paul Eggert
Thanks for mentioning this problem. The military timezone indicators (other than "Z") were purposely done backwards in 1999, to be compatible with Internet RFC 822 which also had them backwards and which was the standard for email at the time. RFC 5322, which is RFC 822's current version, says

Re: parse-datetime.y - Military Timezones are inverted from the correct sense

2019-08-09 Thread Assaf Gordon
Hello, On Fri, Aug 09, 2019 at 02:01:35PM -0700, Paul Eggert wrote: > Since the RFC 822 error was fixed in 2001 when RFC 2822 came out, it is long > past time to fix parse-datetime.y accordingly, so I installed the attached > patch into Gnulib. This results in a user-visible change for gnu date,