Post by Theking2 » Fri Nov 09, 2018 10:07 pm

After upgrade from 1.5.6.4 to 3.1.0.0.b everything seems to work but attempts to configure the (single) store results in:

Notice: date_default_timezone_set(): Timezone ID '' is invalid in \http\admin\controller\setting\setting.php on line 348
date.timezone was configured. Where else does opencart expect a timezone configuration?

--> a phpinfo() gives as settings:

date/time support enabled
timelib version 2017.06
"Olson" Timezone Database Version 2018.5
Timezone Database internal
Default timezone Europe/Zurich

Newbie

Posts

Joined
Mon Mar 12, 2018 10:08 pm

Post by straightlight » Sat Nov 10, 2018 7:39 pm

What is the defined timezone setting in your admin - > systems - > settings - > edit settings page?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Theking2 » Mon Nov 12, 2018 4:57 pm

straightlight wrote:
Sat Nov 10, 2018 7:39 pm
What is the defined timezone setting in your admin - > systems - > settings - > edit settings page?
Exactly that is the problem. When I click edit I get the error message..

Newbie

Posts

Joined
Mon Mar 12, 2018 10:08 pm

Post by Theking2 » Mon Nov 12, 2018 5:09 pm

Lösung:
in admin\controller\setting\setting.php#348
-348 date_default_timezone_set($this->config->get('config_timezone'));
+348 date_default_timezone_set("Europe/Zurich");

Danach kann man tatsächlich unter Settings den richtigen Timezone wählen und die Änderungen in setting.php wieder rückgängig machen.

Newbie

Posts

Joined
Mon Mar 12, 2018 10:08 pm
Who is online

Users browsing this forum: No registered users and 12 guests