Fixed 64-bit issues

This commit is contained in:
Dmitry Stogov 2007-04-09 15:32:35 +00:00
parent 6c394c8b38
commit 1b01048cd8

View File

@ -943,6 +943,7 @@ PHP_FUNCTION(variant_date_to_timestamp)
PHP_FUNCTION(variant_date_from_timestamp)
{
long timestamp;
time_t ttstamp;
SYSTEMTIME systime;
struct tm *tmv;
VARIANT res;
@ -959,7 +960,8 @@ PHP_FUNCTION(variant_date_from_timestamp)
VariantInit(&res);
tzset();
tmv = localtime(&timestamp);
ttstamp = timestamp;
tmv = localtime(&ttstamp);
memset(&systime, 0, sizeof(systime));
systime.wDay = tmv->tm_mday;