From f36c9e44ac02a67135a193fe965f151f1a850575 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Tue, 26 May 2009 15:22:04 +0000 Subject: [PATCH] * added a couple more test dates that contain timezones git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30865 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/system/libroot/os/ParseDateTest.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/tests/system/libroot/os/ParseDateTest.cpp b/src/tests/system/libroot/os/ParseDateTest.cpp index fc5f90d35f..6a63c32191 100644 --- a/src/tests/system/libroot/os/ParseDateTest.cpp +++ b/src/tests/system/libroot/os/ParseDateTest.cpp @@ -1,4 +1,4 @@ -/* +/* ** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved. ** Distributed under the terms of the OpenBeOS License. */ @@ -31,12 +31,12 @@ parsedate_flags_to_string(time_t result, int flags) return "day relative"; } - + return "absolute"; } -int +int main(int argc, char **argv) { const char *dates[] = { @@ -65,6 +65,13 @@ main(int argc, char **argv) "3:33pm GMT", "Mon, June 10th, 1993 10:00:03 am GMT", "Sat, 16 Aug Ìîñêîâñêîå âðåìÿ (çèìà)", + "Mon, June 10th, 1993 10:00:03 am UTC", + "Mon, June 10th, 1993 10:00:03 am CEST", + "Mon, June 10th, 1993 10:00:03 am +0000", + "Mon, June 10th, 1993 10:00:03 am 0000", // invalid! + "Mon, June 10th, 1993 10:00:03 am +0100", + "Mon, June 10th, 1993 10:00:03 am -0700", + "Mon, June 10th, 1993 06:00:03 am ACDT", NULL };