Forums / Installing on a Linux/Unix Server / Warning: strtotime(): It is not safe to rely on the system's timezone settings.

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

Views: 3,237

Results 1 to 5 of 5
29 Jul 2013, 8:34 PM
#1
sanguinarius avatar

sanguinarius

New Zenner

Join Date:
Feb 2013
Location:
Green Valley, Arizona, United States
Posts:
21
Plugin Contributions:
0

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

I have had Zen Cart installed and been using it for some time but now at the logon screen I get the following:

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 /home2/sanguina/public_html/store/zenadmin/login.php on line 13

(I am also getting a similar warning for another script I'm using, unrelated, but that's neither here nor there.)

I can't login; it sends me to a page that repeats the warning and that's all that's on the page.

I believe I have v. 150 installed. I installed new and I believe I installed via zc_install.

My site is https://www.sanguinarius.org/store/ . How do I post my admin url without compromising security?

I use HostMonster as my hosting company.

I did several different searches for the warning before I posted this topic. This is all the info I have available right now as I can't log in and I'm not evven sure if myv password's been reset or not.

Signed,

Frustrated

--Sanguinarius
"If you're reading this, I'm probably ripping my hair out."
My Store: Dreamland Gallery

29 Jul 2013, 8:40 PM
#2
drbyte avatar

drbyte

Sensei

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

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

What PHP version are you using?

Does this help? http://www.zen-cart.com/showthread.php?208662-date-timezone-patch-for-PHP

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

29 Jul 2013, 9:06 PM
#3
sanguinarius avatar

sanguinarius

New Zenner

Join Date:
Feb 2013
Location:
Green Valley, Arizona, United States
Posts:
21
Plugin Contributions:
0

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

Using:

PHP version 5.4.17
MySQL version 5.5.32-log

I will give your suggestion a try. Thank you.

--Sanguinarius
"If you're reading this, I'm probably ripping my hair out."
My Store: Dreamland Gallery

29 Jul 2013, 9:22 PM
#4
sanguinarius avatar

sanguinarius

New Zenner

Join Date:
Feb 2013
Location:
Green Valley, Arizona, United States
Posts:
21
Plugin Contributions:
0

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

Plan A didn't work; trying plan B.

Do I use the timezone I'm in, or the timezone my webhosting provider is in?

--Sanguinarius
"If you're reading this, I'm probably ripping my hair out."
My Store: Dreamland Gallery

29 Jul 2013, 10:40 PM
#5
drbyte avatar

drbyte

Sensei

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

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

Either will "work".
Depends how you want it to display to you.

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