Page 1 of 1

timezone_transformer.php Admin Error 1.0.9.3

Posted: Thu Jul 18, 2024 11:11 am
by cwh2000
Admin error
Fatal error
: Uncaught DomainException: Time zone different than GMT or UTC is not supported as a formatting output. in /home/neperfmust/public_html/catalog/includes/system/versioned/1.0.9.3/timezone_transformer.php:49 Stack trace: #0 /home/neperfmust/public_html/catalog/includes/system/versioned/1.0.9.3/full_transformer.php(113): TimezoneTransformer->format(Object(DateTime), 1) #1 /home/neperfmust/public_html/catalog/includes/system/versioned/1.0.9.3/full_transformer.php(92): FullTransformer->formatReplace('z', Object(DateTime)) #2 [internal function]: FullTransformer->{closure}(Array) #3 /home/neperfmust/public_html/catalog/includes/system/versioned/1.0.9.3/full_transformer.php(93): preg_replace_callback('/('(?:[^']+|'')...', Object(Closure), 'M/d/yy, h:mm:ss...') #4 /home/neperfmust/public_html/catalog/includes/system/versioned/1.0.9.3/intl_date_formatter.php(224): FullTransformer->format(Object(DateTime)) #5 /home/neperfmust/public_html/catalog/nepmadmin6470/includes/modules/dashboard/d_admin_logins.php(49): IntlDateFo in
/home/neperfmust/public_html/catalog/includes/system/versioned/1.0.9.3/timezone_transformer.php
on line
49

Re: timezone_transformer.php Admin Error 1.0.9.3

Posted: Wed Jul 24, 2024 4:54 am
by frankl
I have this error too!

Re: timezone_transformer.php Admin Error 1.0.9.3

Posted: Wed Jul 24, 2024 5:05 am
by heatherbell
Just a guess:
https://github.com/CE-PhoenixCart/Phoen ... quirements
shows PHP extension intl must be enabled

Re: timezone_transformer.php Admin Error 1.0.9.3

Posted: Wed Jul 24, 2024 9:30 am
by burt
Hopefully Matt @ecartz will be along to give further advice on this.
I think we used Symfony's polyfill but I wasn't involved in any of that, so loath to give advice on it.

Re: timezone_transformer.php Admin Error 1.0.9.3

Posted: Wed Jul 24, 2024 10:42 am
by burt
I wonder if we need the transformer on the login date?

$GLOBALS['date_time_formatter']->format((new Date($logins['date_added']))->get_timestamp())

to

Date::abridge($logins['date_added'])

or just

$logins['date_added']

Re: timezone_transformer.php Admin Error 1.0.9.3

Posted: Wed Jul 24, 2024 11:43 am
by ecartz
Turning on intl is the easy solution. I'll look into whether we can fix this more generally. This seems like a limitation that we could lift.