From patchwork Sun Jan 6 17:19:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 30977 Received: (qmail 34010 invoked by alias); 6 Jan 2019 17:19:48 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 33997 invoked by uid 89); 6 Jan 2019 17:19:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY autolearn=ham version=3.3.2 spammy=H*r:111, HContent-Transfer-Encoding:8bit X-HELO: hall.aurel32.net From: Aurelien Jarno To: libc-alpha@sourceware.org Cc: Aurelien Jarno Subject: [PATCH v2] en_US: define date_fmt (bug 24046) Date: Sun, 6 Jan 2019 18:19:29 +0100 Message-Id: <20190106171929.13106-1-aurelien@aurel32.net> MIME-Version: 1.0 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): Set to "%a %d %b %Y %r %Z". --- localedata/locales/en_US | 3 +++ 1 file changed, 3 insertions(+) diff --git a/localedata/locales/en_US b/localedata/locales/en_US index 5e2b365659..7a3f5dc778 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 and time representation for date(1) +date_fmt "%a %d %b %Y %r %Z" +% % Strings for AM/PM % am_pm "AM";"PM"