From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21229: 24.5; parse-time-string ignore PM/AM Date: Mon, 10 Aug 2015 20:46:30 +0300 Message-ID: <83egjbox3d.fsf@gnu.org> References: <83h9o7oxvh.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1439228846 12738 80.91.229.3 (10 Aug 2015 17:47:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2015 17:47:26 +0000 (UTC) Cc: f92capac@gmail.com, 21229@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 10 19:47:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZOrAH-0007BG-7I for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Aug 2015 19:47:13 +0200 Original-Received: from localhost ([::1]:59610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOrAG-0002uT-GW for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Aug 2015 13:47:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOrAC-0002tr-4q for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 13:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOrA6-0007JO-GF for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 13:47:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOrA6-0007JK-CL for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 13:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZOrA6-0005eD-2Y for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 13:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Aug 2015 17:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21229-submit@debbugs.gnu.org id=B21229.143922880621688 (code B ref 21229); Mon, 10 Aug 2015 17:47:02 +0000 Original-Received: (at 21229) by debbugs.gnu.org; 10 Aug 2015 17:46:46 +0000 Original-Received: from localhost ([127.0.0.1]:52393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOr9q-0005dj-55 for submit@debbugs.gnu.org; Mon, 10 Aug 2015 13:46:46 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:49791) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOr9n-0005da-RG for 21229@debbugs.gnu.org; Mon, 10 Aug 2015 13:46:44 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NSV00400O0UOP00@a-mtaout21.012.net.il> for 21229@debbugs.gnu.org; Mon, 10 Aug 2015 20:46:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NSV004M5O1UOH00@a-mtaout21.012.net.il>; Mon, 10 Aug 2015 20:46:42 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105399 Archived-At: > Date: Tue, 11 Aug 2015 02:35:52 +0900 (JST) > From: Tino Calancha > cc: Tino Calancha , 21229@debbugs.gnu.org > > > |#> emacs -Q > > > (parse-time-string "Mon 10 Aug 2015 03:11:35 PM JST") > (35 11 3 10 8 2015 1 nil nil) > (parse-time-string "Mon 10 Aug 2015 03:11:35 AM JST") > (35 11 3 10 8 2015 1 nil nil) So, as you see, the problem is in parse-time-string. I'm not even sure that function is supposed to be able to parse the output of %c, since on my system that produces an obviously bogus result: (format-time-string "%c" (current-time)) => "8/10/2015 8:41:41 PM" but (parse-time-string "8/10/2015 8:41:41 PM") => (41 41 8 8 nil 2010 nil nil nil) Look, ma: no month! and the year is off! However, (current-time-string) => "Mon Aug 10 20:44:52 2015" and (parse-time-string "Mon Aug 10 20:44:52 2015") => (52 44 20 10 8 2015 1 nil nil) as expected.