--- /dev/null
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id B14E4431FBF\r
+ for <notmuch@notmuchmail.org>; Mon, 2 Mar 2015 10:20:57 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.738\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.738 tagged_above=-999 required=5\r
+ tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_LOW=-0.7]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id jWysR4EzCOU1 for <notmuch@notmuchmail.org>;\r
+ Mon, 2 Mar 2015 10:20:54 -0800 (PST)\r
+Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com\r
+ [209.85.212.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id A14DD414B82\r
+ for <notmuch@notmuchmail.org>; Mon, 2 Mar 2015 09:49:27 -0800 (PST)\r
+Received: by wibbs8 with SMTP id bs8so16779851wib.4\r
+ for <notmuch@notmuchmail.org>; Mon, 02 Mar 2015 09:46:47 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
+ bh=mKJ1mmlNn9d3I4frYQujpz4/cE2yLE3WRKxrYc0m5a4=;\r
+ b=FiP/l6SIOqQ6LK30i/whZMWR+sJFFqNhopE+uIonO+gD9eInvUMfZa4XTk0XTu07SP\r
+ 7eJ+IfGy0U7BL6lbxS/VTzNp8cbNT3TEzW1SmPHHaNX6AzEKMZ/ZjWZ+0f6uvfJfvHhQ\r
+ rctwGmZzbA+RMW5YYV8BmhWMOpdq1KCGi5XXEiTuqMhUnhxmY8kH9idI8Lf6vNRSHq0m\r
+ V5/hWuXdUbDTzvFvFDBCB7/7ItaJGDTgPswJbj/FiDYFo801vI35qPN75ToXK6cYJ+6H\r
+ M4aWxpC4cRGnbpqPj59Xw7/zpgTfRGq7tNlRxrT+W80XW3NZM8LJsk4DPKzE0svhj3HZ\r
+ dAHQ==\r
+X-Gm-Message-State:\r
+ ALoCoQnqa4ViTZOq/AqOitQuGLgVNssuEYA+wTwHaj29HZ2Cm9YO2qYm7acSBKZVEyV9ituRQuzy\r
+X-Received: by 10.180.77.48 with SMTP id p16mr37131215wiw.89.1425318407271;\r
+ Mon, 02 Mar 2015 09:46:47 -0800 (PST)\r
+Received: from localhost (mobile-internet-bcee3b-76.dhcp.inet.fi.\r
+ [188.238.59.76])\r
+ by mx.google.com with ESMTPSA id r3sm20222614wjw.7.2015.03.02.09.46.45\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Mon, 02 Mar 2015 09:46:45 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/4] test: improve the time parsing tests\r
+Date: Mon, 2 Mar 2015 19:47:01 +0200\r
+Message-Id: <1425318424-27017-1-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 2.1.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 02 Mar 2015 18:20:57 -0000\r
+\r
+Set the reference time to 12:13:14 instead of 11:11:00 to ensure hours\r
+and minutes are not mixed up, and seconds are really set instead of\r
+defaulted to 00.\r
+---\r
+ test/T490-parse-time-string.sh | 42 +++++++++++++++++++++---------------------\r
+ 1 file changed, 21 insertions(+), 21 deletions(-)\r
+\r
+diff --git a/test/T490-parse-time-string.sh b/test/T490-parse-time-string.sh\r
+index 8ae0b4c24e15..08a834eb1a80 100755\r
+--- a/test/T490-parse-time-string.sh\r
++++ b/test/T490-parse-time-string.sh\r
+@@ -24,38 +24,38 @@ test_begin_subtest "date(1) --rfc=3339=seconds format"\r
+ test_expect_equal "$(_parse_time 2012-08-03 23:09:37+03:00)" "$(_date 2012-08-03 23:09:37+03:00)"\r
+ \r
+ test_begin_subtest "Date parser tests"\r
+-REFERENCE=$(_date Tue Jan 11 11:11:00 +0000 2011)\r
++REFERENCE=$(_date Tue Jan 11 12:13:14 +0000 2011)\r
+ cat <<EOF > INPUT\r
+-now ==> Tue Jan 11 11:11:00 +0000 2011\r
++now ==> Tue Jan 11 12:13:14 +0000 2011\r
+ 2010-1-1 ==> ERROR: DATEFORMAT\r
+-Jan 2 ==> Sun Jan 02 11:11:00 +0000 2011\r
+-Mon ==> Mon Jan 10 11:11:00 +0000 2011\r
++Jan 2 ==> Sun Jan 02 12:13:14 +0000 2011\r
++Mon ==> Mon Jan 10 12:13:14 +0000 2011\r
+ last Friday ==> ERROR: FORMAT\r
+-2 hours ago ==> Tue Jan 11 09:11:00 +0000 2011\r
+-last month ==> Sat Dec 11 11:11:00 +0000 2010\r
+-month ago ==> Sat Dec 11 11:11:00 +0000 2010\r
+-two mo ==> Thu Nov 11 11:11:00 +0000 2010\r
+-3M ==> Mon Oct 11 11:11:00 +0000 2010\r
+-4-mont ==> Sat Sep 11 11:11:00 +0000 2010\r
+-5m ==> Tue Jan 11 11:06:00 +0000 2011\r
+-dozen mi ==> Tue Jan 11 10:59:00 +0000 2011\r
++2 hours ago ==> Tue Jan 11 10:13:14 +0000 2011\r
++last month ==> Sat Dec 11 12:13:14 +0000 2010\r
++month ago ==> Sat Dec 11 12:13:14 +0000 2010\r
++two mo ==> Thu Nov 11 12:13:14 +0000 2010\r
++3M ==> Mon Oct 11 12:13:14 +0000 2010\r
++4-mont ==> Sat Sep 11 12:13:14 +0000 2010\r
++5m ==> Tue Jan 11 12:08:14 +0000 2011\r
++dozen mi ==> Tue Jan 11 12:01:14 +0000 2011\r
+ 8am ==> Tue Jan 11 08:00:00 +0000 2011\r
+ 9:15 ==> Tue Jan 11 09:15:00 +0000 2011\r
+ 12:34 ==> Tue Jan 11 12:34:00 +0000 2011\r
+-monday ==> Mon Jan 10 11:11:00 +0000 2011\r
+-yesterday ==> Mon Jan 10 11:11:00 +0000 2011\r
++monday ==> Mon Jan 10 12:13:14 +0000 2011\r
++yesterday ==> Mon Jan 10 12:13:14 +0000 2011\r
+ tomorrow ==> ERROR: KEYWORD\r
+- ==> Tue Jan 11 11:11:00 +0000 2011 # empty string is reference time\r
++ ==> Tue Jan 11 12:13:14 +0000 2011 # empty string is reference time\r
+ \r
+ Aug 3 23:06:06 2012 ==> Fri Aug 03 23:06:06 +0000 2012 # date(1) default format without TZ code\r
+ Fri, 03 Aug 2012 23:07:46 +0100 ==> Fri Aug 03 22:07:46 +0000 2012 # rfc-2822\r
+ 2012-08-03 23:09:37+03:00 ==> Fri Aug 03 20:09:37 +0000 2012 # rfc-3339 seconds\r
+ \r
+-10s ==> Tue Jan 11 11:10:50 +0000 2011\r
+-19701223s ==> Fri May 28 10:37:17 +0000 2010\r
+-19701223 ==> Wed Dec 23 11:11:00 +0000 1970\r
++10s ==> Tue Jan 11 12:13:04 +0000 2011\r
++19701223s ==> Fri May 28 11:39:31 +0000 2010\r
++19701223 ==> Wed Dec 23 12:13:14 +0000 1970\r
+ \r
+-19701223 +0100 ==> Wed Dec 23 11:11:00 +0000 1970 # Timezone is ignored without an error\r
++19701223 +0100 ==> Wed Dec 23 12:13:14 +0000 1970 # Timezone is ignored without an error\r
+ \r
+ today ==^^> Wed Jan 12 00:00:00 +0000 2011\r
+ today ==^> Tue Jan 11 23:59:59 +0000 2011\r
+@@ -65,8 +65,8 @@ this week ==^^> Sun Jan 16 00:00:00 +0000 2011\r
+ this week ==^> Sat Jan 15 23:59:59 +0000 2011\r
+ this week ==_> Sun Jan 09 00:00:00 +0000 2011\r
+ \r
+-two months ago ==> Thu Nov 11 11:11:00 +0000 2010\r
+-two months ==> Thu Nov 11 11:11:00 +0000 2010\r
++two months ago ==> Thu Nov 11 12:13:14 +0000 2010\r
++two months ==> Thu Nov 11 12:13:14 +0000 2010\r
+ \r
+ @1348569850 ==> Tue Sep 25 10:44:10 +0000 2012\r
+ @10 ==> Thu Jan 01 00:00:10 +0000 1970\r
+-- \r
+2.1.4\r
+\r