From unknown Sun Aug 17 22:00:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#55183 <55183@debbugs.gnu.org> To: bug#55183 <55183@debbugs.gnu.org> Subject: Status: date Reply-To: bug#55183 <55183@debbugs.gnu.org> Date: Mon, 18 Aug 2025 05:00:57 +0000 retitle 55183 date reassign 55183 coreutils submitter 55183 danilopereira82@tutanota.com severity 55183 normal tag 55183 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 29 10:09:29 2022 Received: (at submit) by debbugs.gnu.org; 29 Apr 2022 14:09:29 +0000 Received: from localhost ([127.0.0.1]:54996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkRJI-0007ij-Rc for submit@debbugs.gnu.org; Fri, 29 Apr 2022 10:09:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:35660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkQDh-0000X3-6e for submit@debbugs.gnu.org; Fri, 29 Apr 2022 08:59:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkQDg-000478-UV for bug-coreutils@gnu.org; Fri, 29 Apr 2022 08:59:36 -0400 Received: from w4.tutanota.de ([81.3.6.165]:39500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkQDf-0007ar-BR for bug-coreutils@gnu.org; Fri, 29 Apr 2022 08:59:36 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w4.tutanota.de (Postfix) with ESMTP id A3DB1106016E for ; Fri, 29 Apr 2022 12:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1651237171; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=LQ46b3dibDB1aRSQPlFV8useNxqpwAUB+Zt64+BPw5s=; b=iq91znSxc833NMweHayLLrCywyOMg22vz4IL8aww5UzQIUbNyGlMA0q4R07tH0Ta +X7Xa4UQIYdDNYcIIOQJEun0tvUMQsdjGBbkXePNPlZHwFbyDspz8VLRGQD0Jq41EQa UuCCimfZbE9SULX1GeRgwdIuefLoFedJJbkXeMB8SILzFvBZgGtueePmOOZdJHXMs49 rZbrLCvDAuyZKDJPBpbj7ZT3HnI62bWpoi0W1Ue+hszkyNN/aRa4AyPHUmEGzrRi8jb GfmL2QKWXnAC/fuLWwYUiWVXimW63Fbq+2Eht+BsSOgbPbYhq//dBoWYDXbaBiwaofL r4QNvfkm6g== Date: Fri, 29 Apr 2022 14:59:31 +0200 (CEST) From: danilopereira82@tutanota.com To: bug-coreutils@gnu.org Message-ID: Subject: date MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=81.3.6.165; envelope-from=danilopereira82@tutanota.com; helo=w4.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 29 Apr 2022 10:09:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) %r has a space at the end that makes me insanely angry=C2=A0fix it From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 29 12:24:11 2022 Received: (at 55183) by debbugs.gnu.org; 29 Apr 2022 16:24:11 +0000 Received: from localhost ([127.0.0.1]:55228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkTPf-0005Aw-J6 for submit@debbugs.gnu.org; Fri, 29 Apr 2022 12:24:11 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:33280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkTPd-0005Ac-D0; Fri, 29 Apr 2022 12:24:09 -0400 Received: by mail-wr1-f41.google.com with SMTP id x18so11500198wrc.0; Fri, 29 Apr 2022 09:24:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=S0LzydMnhpha73cPC+eQDG7iuhWXhZATMLNATw7PLfE=; b=JE7JcCY4gO2rKrUAALgi/4TvBKiowGlxH4gNUES3quzmfUA6MvmWpBkrj5Q6+K2NDy i5bVYY6b4YgH7HBFRrWWYaOYbSzL76M+1d8ZSwSnVuLrfsZodsldEVt6UnLr33Sj5yUi STIEF+7Z3lDaV6AhYu0d+OBA54c6ieWtOyeU99E8epIV37E/zG1CsHduUE0imj+/cPvl 7Q48ab/c8TAumi+4VOXiTccapDSI+ng3N7HHMMxMJEYTec99ZnSuCOphNkrLlArcduxd rnqgDOo8lvd4D05RQsPEZzYFzbaMFm/gI+N7TxTxHsckP35sra4BgfdYcfOtoDgMI1ry yHQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=S0LzydMnhpha73cPC+eQDG7iuhWXhZATMLNATw7PLfE=; b=sRSIlpLsA8LdL4spyNmSczUQ+znGnOphrzS+4Xsm80BI5kOYaO/XQhKD/Y1k9rAAXK bs+TaTyAvwa0zuxt2p9O6eZqJAd2UxZVeD5OmRzsDglCkr5axJ5mlY4IzmKM3haEOyP1 +QmutGyelXlLisYqWdrCafCc+qVWW4QCOaKHm6OWFnsWPHpvzP/zlI2ENJg2W8/z8xnX KNvLgjt2oQy6Humss+R0vio14UrYpvsTMjzioDXRZgfY3n+Q0VthMl6RdPcgzLj7ESL8 ncSeDhbU8FNQqMym89mVn9u2AuaRfFhk6B+/nCW9TpEQ+rCLX6jZ2f6/RijiA74myFN+ zpag== X-Gm-Message-State: AOAM533m0jdL8mO2/tRlvmY10I0xRz/uZ4bE7aoYwl/VgwQ8VnxozyzU iwAadbvYucVtNCgKpdy/tuI= X-Google-Smtp-Source: ABdhPJwOqevCrlp8+5E7/Dkez3lQcnbPrPb5CJ9Hr0S+TJetXaTLsYv1jx12MLppYOS+uPr4Tjrjhg== X-Received: by 2002:a5d:4e08:0:b0:20a:f065:7024 with SMTP id p8-20020a5d4e08000000b0020af0657024mr11011563wrt.598.1651249443321; Fri, 29 Apr 2022 09:24:03 -0700 (PDT) Received: from [192.168.1.9] (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net. [95.44.90.175]) by smtp.googlemail.com with ESMTPSA id z7-20020a7bc7c7000000b0038eaf85b0absm2905182wmk.20.2022.04.29.09.24.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Apr 2022 09:24:02 -0700 (PDT) Message-ID: <69be1108-1eaf-266f-6885-80497210aaa8@draigBrady.com> Date: Fri, 29 Apr 2022 17:24:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Thunderbird/97.0 Subject: Re: bug#55183: date Content-Language: en-US To: danilopereira82@tutanota.com, 55183@debbugs.gnu.org References: From: =?UTF-8?Q?P=c3=a1draig_Brady?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 55183 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) tag 55183 notabug close 55183 stop On 29/04/2022 13:59, danilopereira82--- via GNU coreutils Bug Reports wrote: > %r has a space at the end that makes me insanely angry fix it What's happening is there is no "am_pm" item defined for your locale. Running this with a locale that does define it, you can see: $ LC_TIME=C date +%r 05:00:50 PM $ LC_TIME=zh_CN.utf8 date +%r 下午 05时00分50秒 You can look up these values with: $ LC_TIME=C locale t_fmt_ampm t_fmt am_pm %I:%M:%S %p %H:%M:%S AM;PM Note "t_fmt_ampm" if defined, takes precedence over "t_fmt ampm". You could argue that an empty ampm should not output the space, but that would have to be addressed in the libc strftime() implementation. Another option is to use the more abstract %X format to get the time in the most appropriate for one's locale, which should be setup appropriately for locales that don't use AM/PM. $ LC_ALL=C date +%X 17:00:50 $ LC_ALL=en_US.utf8 date +%X 05:00:50 PM $ LC_ALL=pt_PT.utf8 date +%X 17:00:50 cheers, Pádraig From unknown Sun Aug 17 22:00:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 28 May 2022 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator