mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
fix for #17928
This commit is contained in:
parent
03e22793ff
commit
eb8bccee56
@ -343,7 +343,11 @@ php_date(INTERNAL_FUNCTION_PARAMETERS, int gm)
|
||||
#if HAVE_TM_ZONE
|
||||
size += strlen(ta->tm_zone);
|
||||
#elif HAVE_TZNAME
|
||||
size += strlen(tname[0]);
|
||||
if (ta->tm_isdst > 0 ) {
|
||||
size += strlen(tname[1]);
|
||||
} else {
|
||||
size += strlen(tname[0]);
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
case 'Z': /* timezone offset in seconds */
|
||||
|
Loading…
Reference in New Issue
Block a user