|
From: Peter S. <si...@cr...> - 2007-05-18 19:57:13
|
Hi Christian,
> The output now is: 1982-06-12 01:00:00
>
> Seems to me that the time value is off by an hour.
Well, I doubt this phenomenon indicates a bug in the parsers.
This feels more like an OS level problem; like the OS applies
some sort of timezone conversion in mktime() -- a function the
test program uses. It's possible that adding a call to tzset() at
the beginning of the test case improves matters:
--- a/test-date.cpp
+++ b/test-date.cpp
@@ -103,6 +103,8 @@ struct runner
BOOST_AUTO_TEST_CASE( test_rfc2822_date_parser )
{
+ tzset();
+
// Init timezone.
{
If that doesn't help, I'm fresh out of ideas. I haven't observed
that particular problem before.
Best regards,
Peter
|