summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_variant.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-07-19 13:39:57 +0000
committerWez Furlong <wez@php.net>2004-07-19 13:39:57 +0000
commit8a8b20877cee9716dbd0edca33edb823b87b834d (patch)
tree9dee09e7bb9565dbe6b99b2457d6d58b10408d93 /ext/com_dotnet/com_variant.c
parente0f33c589fa590d28b24a69ffd78c06b7b0232fc (diff)
downloadphp-git-8a8b20877cee9716dbd0edca33edb823b87b834d.tar.gz
Possible fix for #29258 (unverified)
win32 people, please test (I have no working win32 build env right now)
Diffstat (limited to 'ext/com_dotnet/com_variant.c')
-rw-r--r--ext/com_dotnet/com_variant.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c
index bf401f82e8..345591306a 100644
--- a/ext/com_dotnet/com_variant.c
+++ b/ext/com_dotnet/com_variant.c
@@ -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;