]> granicus.if.org Git - php/commitdiff
Possible fix for #29258 (unverified)
authorWez Furlong <wez@php.net>
Mon, 19 Jul 2004 13:39:57 +0000 (13:39 +0000)
committerWez Furlong <wez@php.net>
Mon, 19 Jul 2004 13:39:57 +0000 (13:39 +0000)
win32 people, please test (I have no working win32 build env right now)

ext/com_dotnet/com_variant.c

index bf401f82e83ed6d604568d8c9f46b15c0f883fa0..345591306afbe24230cda83eb6227090a1ca1159 100644 (file)
@@ -799,7 +799,8 @@ PHP_FUNCTION(variant_date_from_timestamp)
        }
 
        VariantInit(&res);
-       tmv = gmtime(&timestamp);
+       tzset();
+       tmv = localtime(&timestamp);
        memset(&systime, 0, sizeof(systime));
 
        systime.wDay = tmv->tm_mday;