GNU bug report logs - #53982
date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm"

Previous Next

Package: coreutils;

Reported by: Stéphane Archer <archerstephane <at> gmail.com>

Date: Sun, 13 Feb 2022 23:46:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stéphane Archer <archerstephane <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm"
Date: Sun, 13 Feb 2022 21:18:55 +0100
[Message part 1 (text/plain, inline)]
Hi,
I hope this is the right place to do my bug report.
please see the following shell input-output:
```
$ date -d "17 april 2022 + 36 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z'
2022-12-25T17:00:00.0Z
$ date -d "17 april 2022 + 37 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z'
2022-01-01T17:00:00.0Z
$ date -d "17 april 2022 + 38 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z'
2023-01-08T17:00:00.0Z
```
as you can see the input "17 april 2022 + 37 week 5pm" makes date return
the wrong output for some unknown reason.

Do I do something wrong?
I use the following version: date (GNU coreutils) 8.30

-- 
Best Regards,

Stephane Archer
[Message part 2 (text/html, inline)]

This bug report was last modified 3 years and 99 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.