mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
@- Changed 'Z' flag to date() to always return timezone offset with
@ negative sign if it's west of UTC. (Andrei)
This commit is contained in:
parent
457888ac44
commit
ccd94c4831
1 changed files with 1 additions and 1 deletions
|
@ -441,7 +441,7 @@ php_date(INTERNAL_FUNCTION_PARAMETERS, int gm)
|
|||
#if HAVE_TM_GMTOFF
|
||||
sprintf(tmp_buff, "%ld", ta->tm_gmtoff);
|
||||
#else
|
||||
sprintf(tmp_buff, "%ld", ta->tm_isdst ? timezone - 3600 : timezone);
|
||||
sprintf(tmp_buff, "%ld", ta->tm_isdst ? -(timezone - 3600) : -timezone);
|
||||
#endif
|
||||
strcat(return_value->value.str.val, tmp_buff);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue