GNU bug report logs - #58599
`date -d $(date)` error for non en_* locale

Previous Next

Package: coreutils;

Reported by: Ruslan Kovtun <koutoftimer <at> gmail.com>

Date: Mon, 17 Oct 2022 23:04:03 UTC

Severity: normal

Full log


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

From: Ruslan Kovtun <koutoftimer <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: `date -d $(date)` error for non en_* locale
Date: Mon, 17 Oct 2022 17:44:00 +0300
[Message part 1 (text/plain, inline)]
$ date -d "$( date )"
date: invalid date ‘Пн 17 окт 2022 17:34:00 EEST’

$ date -d "Mon 17 oct 2022 17:34:00 EEST"
Пн 17 окт 2022 17:34:00 EEST

According to "do one thing and do it well" and to the fact of '-d/--date'
option existence, `date` should be able to parse its default output in any
locale.
-- 
Yours faithfully,
Ruslan Kovtun.
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 246 days ago.

Previous Next


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