From unknown Tue Aug 19 07:27:05 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#40861 <40861@debbugs.gnu.org> To: bug#40861 <40861@debbugs.gnu.org> Subject: Status: 26.3; parse-time-string does not intepret times Reply-To: bug#40861 <40861@debbugs.gnu.org> Date: Tue, 19 Aug 2025 14:27:05 +0000 retitle 40861 26.3; parse-time-string does not intepret times reassign 40861 emacs submitter 40861 rjhwelsh+emacs@posteo.net severity 40861 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 04:35:46 2020 Received: (at submit) by debbugs.gnu.org; 26 Apr 2020 08:35:46 +0000 Received: from localhost ([127.0.0.1]:60821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSclO-0001kr-0Z for submit@debbugs.gnu.org; Sun, 26 Apr 2020 04:35:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:54215) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jScCT-0000mr-0O for submit@debbugs.gnu.org; Sun, 26 Apr 2020 03:59:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57802) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jScCS-0002D7-85 for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2020 03:59:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jScCR-0000oh-0Z for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2020 03:59:39 -0400 Received: from mout02.posteo.de ([185.67.36.66]:45615) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jScCQ-0000ap-4x for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2020 03:59:38 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 4FC172400FF for ; Sun, 26 Apr 2020 09:59:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1587887973; bh=FDrTO1vbF3TSm4krnwfK937gLaE0k1thV8bC08uqo2o=; h=From:To:Subject:Date:From; b=PJ6+IUNsn37A5upxkp10BEYqrMW1qvdGFTsXC8+je9jAhnjeTcQnQ5LzrivrbMEc4 LGimwXFGvgh/a5L6Uy7tOYytjcWfNK7ahOnXXN+oyjcihN0Ph3FL7Kg9CPw6RRbYOD JcMeP54vxOJTlRQFF3OH6KJrL9qUO5dyIfXf7aZXsdt5TlgiC0je8pdcgEGlM8ZAO1 /XmOEE+vXYXWLWDTtphWLsnrGydhIZVUnjOCrAfEcd9x8b6G3U7brCxZYf9NDR5epW ek0zdImYODBHr1TlCB6xz6BR9d0eR07ue91SJeRl5uYoN/lyobsfGoFwfINsCgZKXg ncU80Q/Crbx7w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4990g71Tbsz9rxQ for ; Sun, 26 Apr 2020 09:59:30 +0200 (CEST) From: rjhwelsh+emacs@posteo.net To: bug-gnu-emacs@gnu.org Subject: 26.3; parse-time-string does not intepret times Date: Sun, 26 Apr 2020 19:59:07 +1200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=rjhwelsh+emacs@posteo.net; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/26 03:59:33 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 185.67.36.66 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 26 Apr 2020 04:35:44 -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.3 (--) Hi, I have noticed that (parse-time-string s) is not working properly for time strings, INCLUDING provided examples in the manual. I first noticed it on org-mode; and tested it with (org-read-date) which uses (parse-time-string) to interpret times. I suspect there is some bug in =3Dparse-time-rules=3D. Scratch buffer to replicate the issue is provided below. Kind regards, Roger ;; *scratch* ;; org.el (require 'org) org (org-read-date nil nil "14:00") "2020-04-26" ;; parse-time.el (parse-time-string "14:00") (nil nil nil nil nil nil nil nil nil) ;; Provided examples from the manual (parse-time-string "Fri, 25 Mar 2016 16:24:56 +0100") (nil nil nil 25 3 2016 5 nil nil) (parse-time-string "1998-09-12T12:21:54-0200") (nil nil nil nil nil nil nil nil nil) parse-time-rules In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.13) of 2020-03-21 built on ponos Windowing system distributor 'The X.Org Foundation', version 11.0.12007000 Recent messages: compiling byte-compile-out-toplevel...done compiling byte-compile-constant...done compiling byte-compile-variable-ref...done compiling byte-optimize-form...done compiling byte-optimize-body...done compiling byte-optimize-predicate...done compiling byte-optimize-binary-predicate...done compiling byte-optimize-form-code-walker...done compiling byte-optimize-lapcode...done ../../../../../usr/share/emacs/26.3/lisp/emacs-lisp/eieio.el: =E2=80=98obje= ct-print=E2=80=99 is an obsolete generic function (as of 26.1); use =E2=80= =98cl-print-object=E2=80=99 instead. Configured using: 'configure --prefix=3D/usr --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --mandir=3D/usr/share/man --infodir=3D/usr/share/info --datadir=3D/usr/share --sysconfdir=3D/etc --localstatedir=3D/var/lib --disable-silent-rules --docdir=3D/usr/share/doc/emacs-26.3-r1 --htmldir=3D/usr/share/doc/emacs-26.3-r1/html --libdir=3D/usr/lib64 --program-suffix=3D-emacs-26 --includedir=3D/usr/include/emacs-26 --infodir=3D/usr/share/info/emacs-26 --localstatedir=3D/var --enable-locallisppath=3D/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=3Dinotify --enable-acl --with-dbus --without-modules --without-gameuser --with-gpm --without-kerberos --without-kerberos5 --with-lcms2 --with-xml2 --without-mailutils --without-selinux --with-gnutls --without-libsystemd --with-threads --without-wide-int --with-zlib --with-sound=3Dalsa --with-x --without-ns --without-gconf --without-gsettings --without-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --without-imagemagick --with-xft --without-cairo --without-libotf --without-m17n-flt --with-x-toolkit=3Dgtk3 --without-xwidgets 'CFLAGS=3D-march=3Divybridge -O2' CPPFLAGS=3D 'LDFLAGS=3D-Wl,-O1 -Wl,--as-needed'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB GTK3 X11 XDBE XIM THREADS LCMS2 Important settings: value of $LC_CTYPE: en_NZ.utf8 value of $LANG: en_NZ.utf8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq dired desktop frameset edmacro kmacro dired-loaddefs format-spec rfc822 mml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio byte-opt subr-x bytecomp byte-compile cconv eieio-core eieio-loaddefs url-vars mm-view mml-smime smime dig mailcap mml-sec password-cache epa wid-edit epg cl-extra help-mode easymenu epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev nnheader gnus-util rmail dframe rmail-loaddefs gmm-utils mailheader sendmail derived rfc2047 rfc2045 ietf-drums mm-util mail-prsvr cl mail-utils parse-time elec-pair cl-seq easy-mmode cl-macs inline cl-loaddefs cl-lib time-date mule-util gv pcase tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 390750 33640) (symbols 48 25725 0) (miscs 40 42 139) (strings 32 36675 1238) (string-bytes 1 1177936) (vectors 16 9843) (vector-slots 8 473886 20554) (floats 8 64 74) (intervals 56 292 0) (buffers 992 11)) From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 10:06:01 2020 Received: (at 40861) by debbugs.gnu.org; 26 Apr 2020 14:06:01 +0000 Received: from localhost ([127.0.0.1]:33849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jShuz-00065a-AH for submit@debbugs.gnu.org; Sun, 26 Apr 2020 10:06:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jShux-00065O-Th for 40861@debbugs.gnu.org; Sun, 26 Apr 2020 10:06:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43622) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jShus-0000Lz-LR; Sun, 26 Apr 2020 10:05:54 -0400 Received: from [176.228.60.248] (port=3704 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jShue-0003Qb-1S; Sun, 26 Apr 2020 10:05:47 -0400 Date: Sun, 26 Apr 2020 17:05:33 +0300 Message-Id: <83368q736a.fsf@gnu.org> From: Eli Zaretskii To: rjhwelsh+emacs@posteo.net In-Reply-To: (rjhwelsh+emacs@posteo.net) Subject: Re: bug#40861: 26.3; parse-time-string does not intepret times References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40861 Cc: 40861@debbugs.gnu.org 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: -3.3 (---) > From: rjhwelsh+emacs@posteo.net > Date: Sun, 26 Apr 2020 19:59:07 +1200 > > ;; parse-time.el > (parse-time-string "14:00") > (nil nil nil nil nil nil nil nil nil) In Emacs 27 this produces (0 0 14 nil nil nil nil -1 nil) which I think is reasonable. > ;; Provided examples from the manual > (parse-time-string "Fri, 25 Mar 2016 16:24:56 +0100") > (nil nil nil 25 3 2016 5 nil nil) This produces (56 24 16 25 3 2016 5 -1 3600) with Emacs 27. > (parse-time-string "1998-09-12T12:21:54-0200") > (nil nil nil nil nil nil nil nil nil) I get (nil nil nil nil nil nil nil -1 nil) So I think this is already fixed in the development sources, and you are advised to upgrade to Emacs 27 (its pretest is available from alpha.gnu.org). Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 27 03:01:51 2020 Received: (at 40861-done) by debbugs.gnu.org; 27 Apr 2020 07:01:51 +0000 Received: from localhost ([127.0.0.1]:35429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSxm3-0005yB-2d for submit@debbugs.gnu.org; Mon, 27 Apr 2020 03:01:51 -0400 Received: from ted.gofardesign.uk ([67.225.143.91]:60370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSxm1-0005sm-Sa for 40861-done@debbugs.gnu.org; Mon, 27 Apr 2020 03:01:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wrjxJE1VDiYow6+0nNzmNjP/0RvxRZ3NtlqK1mpuv7g=; b=Oqmgx3wNrmqA361bTO4l4YThry 8UIZRxh4+xXQN4M63MqtzokrMckwIl+E84VaKL7tDj2Xcj/dnQS1ByCn7+sIX+Q//EQr/BLm7dom4 Y1rKuJ6Th3mk6dfdrG6y2/u5yFNMQfA5cuYqbWR8HONdPfuUFaFBEF/BkGpFhbAj9sAovwXM09xAf 7Bzf1AWo3+N2nN8LvO0aN29ZnmyplTqtK3Bl94YLTrUeLYzBjPtoT6H3ZAwYfOQ0OcqmjiNx0OGSj 2xnBxfhWfzWl2mSFlXZizB4qH9vfpPUOvhpRaDaHsr7RUvBeVzR8gRzae52uTHVPHJDmA6dBI/t1d 6ryFpA3Q==; Received: from h-4-70-69.a785.priv.bahnhof.se ([155.4.70.69]:49014 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jSxlq-0014Dx-N9; Mon, 27 Apr 2020 03:01:38 -0400 From: Stefan Kangas To: Eli Zaretskii Subject: Re: bug#40861: 26.3; parse-time-string does not intepret times In-Reply-To: <83368q736a.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 26 Apr 2020 17:05:33 +0300") References: <83368q736a.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Mon, 27 Apr 2020 09:01:37 +0200 Message-ID: <87wo618l9q.fsf@stefankangas.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40861-done Cc: 40861-done@debbugs.gnu.org, rjhwelsh+emacs@posteo.net 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: -1.0 (-) Eli Zaretskii writes: > So I think this is already fixed in the development sources, and you > are advised to upgrade to Emacs 27 (its pretest is available from > alpha.gnu.org). I'm seeing the same thing as Eli, this seems to be all fixed. I'm therefore closing this bug now. Best regards, Stefan Kangas From unknown Tue Aug 19 07:27:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 25 May 2020 11:24:05 +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