You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Making some tests, the code can sucessfully parse the strings TZ=UTC0 date -d '1997-01-19 08:17:48 +0000' and TZ=UTC0 date -d '1997-01-19 08:17:48 +00:00'.
We could try to parse the timezone and then pass the right argument to the function parse_datetime::parse_datetime_at_date(...).
What do you think?
Inspecting the code, I see that they try to parse also the timezone, but since %z accepts only 4 digits (i.e +0000) or 4 digits separated by : (i.e +00:00), the function returns an error
Environment: Ubuntu 20.04, uutils main branch (git commit 88cdf16), GNU coreutils v8.30
Steps to reproduce:
What happens now: uutils
date
terminates with an error because it doesn't understand the+0
time zone:If you remove the
+0
, then uutilsdate
does successfully parse the date string.What I expected to happen: GNU
date
successfully interprets the+0
as a time zone:Notes: this is causing a test failure in GNU test file
tests/date/date.pl
.The text was updated successfully, but these errors were encountered: