Results 1 to 10 of 22

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    UK
    Posts
    400
    Plugin Contributions
    0

    Default Timezone error .... help plz

    Hi there

    I have just completed a fresh installation of Zencart v1.5.4. The front of the site is working great but when i get to the admin i get the error below :


    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 /websites/123reg/LinuxPackage22/fa/tm/oo/fa$$$$$$$$$.com/public_html/admin$$$$$$/login.php on line 13


    I have followed some advice on this forum but its not helped with the issue at all.....

    PHP Version: 5.6.11 (Zend: 2.6.0)

    can anyone help please?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,693
    Plugin Contributions
    11

    Default Re: Timezone error .... help plz

    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Timezone error .... help plz

    I might suggest the following specific post which relates to ZC 1.5.2 and above:
    https://www.zen-cart.com/showthread....05#post1270805
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    May 2008
    Location
    UK
    Posts
    400
    Plugin Contributions
    0

    Default Re: Timezone error .... help plz

    Quote Originally Posted by mc12345678 View Post
    I might suggest the following specific post which relates to ZC 1.5.2 and above:
    https://www.zen-cart.com/showthread....05#post1270805

    Hi there

    Yes i have been searching for threads on trying to fix this issue and i have tried adding the location in to the script too... but that error is still there ....

    not sure what else there is ???

    thanks

  5. #5
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Timezone error .... help plz

    Quote Originally Posted by amebb View Post
    Hi there

    Yes i have been searching for threads on trying to fix this issue and i have tried adding the location in to the script too... but that error is still there ....

    not sure what else there is ???

    thanks
    Could you be a little more descriptive? What. Location information was "plugged" in?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    May 2008
    Location
    UK
    Posts
    400
    Plugin Contributions
    0

    Default Re: Timezone error .... help plz

    ok i followed one of the threads to place a location in the script.

    The script was located at - /includes/extra_configures/set_time_zone.php

    so i then placed my location as stated.

    my location is Europe/London

    hope that helps

  7. #7
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Timezone error .... help plz

    Quote Originally Posted by amebb View Post
    can anyone help please?
    Although not officially recommended, and since you have *apparently* tried everything else.

    Load the file /youradmin/includes/application_top.php into a text editor.

    Locate the code that reads like:

    Code:
    if (version_compare(PHP_VERSION, 5.3, '>='))
    {
      @date_default_timezone_set(date_default_timezone_get());
    }
    (This should be somewhere around line#60)

    Replace the @date_default line with
    @date_default_timezone_set('Europe/London');

    Save the file. That *should* bypass the problem.

    Cheers
    RodG

 

 

Similar Threads

  1. i am gettin an error, plz help
    By riship316 in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 28 Feb 2010, 10:38 PM
  2. shipping error plz help
    By nathan66 in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 23 Feb 2009, 10:06 AM
  3. plz plz help me with zen cart functions
    By anis_huq in forum General Questions
    Replies: 1
    Last Post: 1 Jun 2007, 04:14 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