timezone_transformer.php Admin Error 1.0.9.3

Open to all! Ask other shopowners for help.
Post Reply
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

timezone_transformer.php Admin Error 1.0.9.3

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
frankl
Builder
Posts: 159
Joined: Tue Feb 23, 2021 8:39 pm
Phoenix Version: v1.1.0.4
Has thanked: 17 times
Been thanked: 26 times

Re: timezone_transformer.php Admin Error 1.0.9.3

Post by frankl »

I have this error too!
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: timezone_transformer.php Admin Error 1.0.9.3

Post by heatherbell »

Just a guess:
https://github.com/CE-PhoenixCart/Phoen ... quirements
shows PHP extension intl must be enabled
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: timezone_transformer.php Admin Error 1.0.9.3

Post 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.
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: timezone_transformer.php Admin Error 1.0.9.3

Post 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']
I am not here to build for you.
I am here to build with you. Let's help each other.
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: timezone_transformer.php Admin Error 1.0.9.3

Post 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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply