IntlDateFormatter does not return specific non-location TimeZone format (z)

Viewed 135

My app suddenly started to display a wrong timeZone format. I always had '12/11/2018 3:55 AM AEST' as the output but now it returns '12/11/2018 3:55 AM GMT+11'. The code:

$formatter = new IntlDateFormatter('en-US', IntlDateFormatter::NONE, IntlDateFormatter::NONE, 'Australia/Sydney', null, "dd/MM/yyyy h:mm a z");
echo $formatter->format(new DateTime());

Is there a simple way to fix that?

I'm using php7.0 with the intl extension and ICU version 60.2 Ubuntu 18.04

0 Answers
Related