mirror of
https://github.com/php/php-src.git
synced 2025-01-22 11:44:09 +08:00
Fixed 64-bit issues
This commit is contained in:
parent
6c394c8b38
commit
1b01048cd8
@ -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(×tamp);
|
||||
ttstamp = timestamp;
|
||||
tmv = localtime(&ttstamp);
|
||||
memset(&systime, 0, sizeof(systime));
|
||||
|
||||
systime.wDay = tmv->tm_mday;
|
||||
|
Loading…
Reference in New Issue
Block a user