|
From: Christian H. <chh...@gm...> - 2007-05-18 21:26:42
|
For whatever reasons my offset to gmt is 4 hours. But it should be 5.
Don't know why this is. ;-(
On 18 May 2007 21:57:05 +0200, Peter Simons <si...@cr...> wrote:
> 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
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Cpp-netlib-devel mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel
>
|