Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2013
    Location
    Green Valley, Arizona, United States
    Posts
    21
    Plugin Contributions
    0

    database error 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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

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

    Default 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

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

    Default 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

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

 

 

Similar Threads

  1. Replies: 13
    Last Post: 8 Feb 2016, 05:13 PM
  2. Replies: 1
    Last Post: 18 Dec 2015, 12:46 AM
  3. v151 PHP warning: It is not safe to rely on the system's timezone settings.
    By cseright7 in forum General Questions
    Replies: 12
    Last Post: 24 Oct 2015, 05:46 AM
  4. v151 It is not safe to rely on the system's timezone settings. You are *required* to use t
    By lauragibbons116 in forum Built-in Shipping and Payment Modules
    Replies: 40
    Last Post: 25 Jan 2014, 02:13 AM
  5. Replies: 5
    Last Post: 27 Feb 2012, 08:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg