Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2015
    Location
    Port Lavaca, Texas USA
    Posts
    29
    Plugin Contributions
    0

    Default Setting time zone on admin login page

    PHP 5.5
    zencart version v1.5.4

    I had a problem with server and rep changed the php version and I started getting this warning:

    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 /xxxxxxx/local/home/xxxxxxxx/xxxxxxxxxxxxxxx/xxxxxx/xxxxxxxxxxxx/login.php on line 13 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 /xxxxxxx/local/home/xxxxxxxx/xxxxxxxxxxxxxxx/xxxxxx/xxxxxxxxxxxx/login.php on line 13

    There is no time zone setting or "UTC" or anything in the whole login file.
    Where can I change this to get rid of the warning?

    Many thanks in advance.
    Last edited by ParseRaider; 3 Apr 2017 at 10:36 AM.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Setting time zone on admin login page

    So technically your host should have this already addressed, then there is your php.ini and when all else fails you can set the timezone within the ZC files at: includes/extra_configures/set_time_zone.php
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Setting time zone on admin login page

    This is already fixed in v1.5.5

    But for your v1.5.4 site, do this:
    Edit /admin/login.php and move the "application_top" line up to between lines 8-9, so that it becomes line 9.

    See here: https://github.com/zencart/zencart/c...1dbf6ff23aae1d ... the red line got moved up to where the green line is.
    .

    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: 4
    Last Post: 24 Jan 2015, 03:47 PM
  2. v151 Admin login page gives time zone error
    By Togfather in forum General Questions
    Replies: 2
    Last Post: 16 Sep 2014, 07:47 PM
  3. Setting Time Zone clarification
    By Nuwanda in forum Basic Configuration
    Replies: 5
    Last Post: 5 Jun 2008, 04:46 PM
  4. Changing time zone on admin page
    By nigelthain in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Feb 2007, 02:55 PM
  5. Setting Time Zone
    By axl23 in forum General Questions
    Replies: 2
    Last Post: 16 Dec 2006, 06:04 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR