mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +02:00
@ - Fix Bug 9878 (patch by bfoddy@mediaone.net) (jmoore)
This commit is contained in:
parent
61cad20c12
commit
f111b84e05
1 changed files with 2 additions and 3 deletions
|
@ -182,10 +182,9 @@ void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gm)
|
||||||
#else
|
#else
|
||||||
/*
|
/*
|
||||||
** If correcting for daylight savings time, we set the adjustment to
|
** If correcting for daylight savings time, we set the adjustment to
|
||||||
** the value of timezone - 3600 seconds. Otherwise, we need to overcorrect and
|
** the value of timezone - 3600 seconds.
|
||||||
** set the adjustment to the main timezone + 3600 seconds.
|
|
||||||
*/
|
*/
|
||||||
gmadjust = -(is_dst ? timezone - 3600 : timezone + 3600);
|
gmadjust = -(is_dst ? timezone - 3600 : timezone);
|
||||||
#endif
|
#endif
|
||||||
seconds += gmadjust;
|
seconds += gmadjust;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue