If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / strtotime(): It is not safe to rely on the system's timezone settings.

strtotime(): It is not safe to rely on the system's timezone settings.

Started by fredsshed on 18 Feb 2012, 9:20 AM · Views: 5,375

Results 1 to 6 of 6
18 Feb 2012, 9:20 AM
#1
fredsshed avatar

fredsshed

New Zenner

Join Date:
Apr 2011
Posts:
5
Plugin Contributions:
0

Post #1 by fredsshed

I can't login to admin I just get this message

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /homepages/16/d254847599/htdocs/chintex/catalog/uploads/login.php on line 13

I have looked at login.php but there is nothing about timezones

18 Feb 2012, 9:31 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

The problem is not with login.php

The problem is that your server's php.ini settings don't properly include timezone settings.
Contact your hosting company to provide assistance.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Feb 2012, 11:04 AM
#3
fredsshed avatar

fredsshed

New Zenner

Join Date:
Apr 2011
Posts:
5
Plugin Contributions:
0

Post #3 by fredsshed

It was OK yesterday and the other Zen Carts I have on the same server are OK

18 Feb 2012, 4:03 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

Alright. If it was OK yesterday, then find out what changed on the server between yesterday and today.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Feb 2012, 1:40 PM
#5
jamesz9 avatar

jamesz9

New Zenner

Join Date:
Feb 2012
Posts:
1
Plugin Contributions:
0

Post #5 by jamesz9

Dear Sir, I got similar problem and currently can not login the administrotor site. When I open the login page I got the following message:

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MST/-7.0/no DST' instead in /home/content/12/8560212/html/myadmin/login.php on line 13

I had searched the fourm but have not got a clear ideas. Can anyone help?

27 Feb 2012, 7:56 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

You need to set the timezone settings in your server's PHP configuration.
Normally the server administrator is the one who must do this. Contact your host for tech support.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.