[PATCH] en_US: define date_fmt (bug 24046)

Aurelien Jarno aurelien@aurel32.net
Mon Dec 31 01:16:00 GMT 2018


The en_US locale use a 12h am/pm format in both d_fmt and d_t_fmt, which
is correct, but does not define date_fmt. This cause the default value
to be used, which is in 24h format.

This patch adds the date_fmt entry to the en_US locale with the same
value as d_t_fmt as the latter already includes the timezone.

Changelog
	[BZ #24046]
	* localedata/locales/en_US (date_fmt): Define.
---
 ChangeLog                | 5 +++++
 localedata/locales/en_US | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index a2170167c7..8f90d99290 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-12-31  Aurelien Jarno  <aurelien@aurel32.net>
+
+	[BZ #24046]
+	* localedata/locales/en_US (date_fmt): Define.
+
 2018-12-28  Justus Winter <4winter@informatik.uni-hamburg.de>
 
 	* hurd/lookup-retry: Include <unistd.h>.
diff --git a/localedata/locales/en_US b/localedata/locales/en_US
index 5e2b365659..2c808bbfb6 100644
--- a/localedata/locales/en_US
+++ b/localedata/locales/en_US
@@ -117,6 +117,9 @@ t_fmt   "%r"
 % Appropriate AM/PM time representation (%r)
 t_fmt_ampm "%I:%M:%S %p"
 %
+% Appropriate date representation (date(1))
+date_fmt "%a %d %b %Y %I:%M:%S %p %Z"
+%
 % Strings for AM/PM
 %
 am_pm	"AM";"PM"
-- 
2.19.2



More information about the Libc-alpha mailing list