From 1d9fa06aea07174bad0b19856f4542084b3053dd Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 12 Nov 2008 12:54:11 +0100 Subject: [PATCH] msvcrt/tests: Trace the timezone being used. --- dlls/msvcrt/tests/time.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/msvcrt/tests/time.c b/dlls/msvcrt/tests/time.c index 88564ded602..83bdc15d3c0 100644 --- a/dlls/msvcrt/tests/time.c +++ b/dlls/msvcrt/tests/time.c @@ -20,6 +20,7 @@ #include "wine/test.h" #include "winbase.h" +#include "winnls.h" #include "time.h" #include /*setenv*/ @@ -63,9 +64,13 @@ static void test_mktime(void) struct tm my_tm, sav_tm; time_t nulltime, local_time; char TZ_env[256]; + char buffer[64]; int secs; ok (res != TIME_ZONE_ID_INVALID, "GetTimeZoneInformation failed\n"); + WideCharToMultiByte( CP_ACP, 0, tzinfo.StandardName, -1, buffer, sizeof(buffer), NULL, NULL ); + trace( "bias %d std %d dst %d zone %s\n", + tzinfo.Bias, tzinfo.StandardBias, tzinfo.DaylightBias, buffer ); /* Bias may be positive or negative, to use offset of one day */ secs= SECSPERDAY - tzinfo.Bias * SECSPERMIN; my_tm.tm_mday = 1 + secs/SECSPERDAY; -- 2.11.4.GIT