mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
fix for #17928
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user