From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: rjhwelsh+emacs@posteo.net Newsgroups: gmane.emacs.bugs Subject: bug#40861: 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 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="71524"; mail-complaints-to="usenet@ciao.gmane.io" To: 40861@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 26 10:36:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jSclo-000IUu-Mc for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Apr 2020 10:36:12 +0200 Original-Received: from localhost ([::1]:55022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jScln-0003Zn-Ma for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Apr 2020 04:36:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34638) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSclf-0003Xd-VY for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2020 04:36:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSclf-0003m3-0r for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2020 04:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49275) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jScle-0003lP-LQ for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2020 04:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jScle-0001lQ-IA for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2020 04:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: rjhwelsh+emacs@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Apr 2020 08:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40861 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15878901466755 (code B ref -1); Sun, 26 Apr 2020 08:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Apr 2020 08:35:46 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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== Original-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) 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-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 X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179051 Archived-At: 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))