Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Jun 2012
    Posts
    481
    Plugin Contributions
    0

    Default Admin Time Zone/Location Incorrect

    Just installed 1.5.4 fresh version. How and where do I set the store time zone/location that appears in the admin main screen?
    Thanks, Dave

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Admin Time Zone/Location Incorrect

    /includes/extra_configures/set_time_zone.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
    May 2011
    Location
    Nova Scotia
    Posts
    35
    Plugin Contributions
    0

    Default Re: Admin Time Zone/Location Incorrect

    Quote Originally Posted by DrByte View Post
    /includes/extra_configures/set_time_zone.php
    is there anything that can prevent this from working Just upgraded from 1.51 to 1.54 time is not working
    set it using the above file
    customer is hosted at godaddy
    If anyone can help that would be awesome

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Admin Time Zone/Location Incorrect

    Login to your store Admin.
    Click on Tools->Server Info
    Press CTRL+F to "search the page" and search for "date.timezone"
    That'll show you the whole "date" section.
    Paste the whole date section here, along with what you've got in set_catalog_time_zone.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.

  5. #5
    Join Date
    May 2011
    Location
    Nova Scotia
    Posts
    35
    Plugin Contributions
    0

    Default Re: Admin Time Zone/Location Incorrect

    date/time support enabled
    "Olson" Timezone Database Version 2010.9
    Timezone Database internal
    Default timezone America/Phoenix

    Directive Local Value Master Value
    date.default_latitude 31.7667 31.7667
    date.default_longitude 35.2333 35.2333
    date.sunrise_zenith 90.583333 90.583333
    date.sunset_zenith 90.583333 90.583333
    date.timezone America/Phoenix America/Phoenix

    Set Catolog Time Zone


    <?php
    /**
    * @package initSystem
    * @copyright Copyright 2003-2013 Zen Cart Development Team
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version GIT: $Id: Author: DrByte Sat Nov 2 01:21:28 2013 -0400 New in v1.5.2 $
    */
    /*
    * Set time zone
    */
    if (version_compare(PHP_VERSION, 5.3, '>='))
    {
    // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
    $TZ = 'Canada/Atlantic'; // eg: 'Europe/Oslo'












    /**
    * MAKE NO CHANGES BELOW THIS LINE
    *
    * The following will take the timezone you specified above and apply it in your store.
    * If you didn't specify one, it will try to use the setting from your server's PHP configuration
    */
    if ($TZ == '') {
    $TZ = date_default_timezone_get();
    }
    if ($TZ != '') {
    putenv('TZ=' . $TZ);
    @date_default_timezone_set($TZ);
    }
    }

  6. #6
    Join Date
    May 2011
    Location
    Nova Scotia
    Posts
    35
    Plugin Contributions
    0

    Default Re: Admin Time Zone/Location Incorrect

    I just found out that he is on PHP 5.2 & that the Blank Admin page fix had to be used after upgrade to get him into the admin. Maybe I should switch him to 5.5 I can change that

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Admin Time Zone/Location Incorrect

    Quote Originally Posted by hfxracing View Post
    // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
    $TZ = 'Canada/Atlantic'; // eg: 'Europe/Oslo'
    'Canada/Atlantic' is not a valid timezone for PHP according to http://www.php.net/manual/en/timezones.php
    Try 'America/Halifax' instead.
    .

    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.

  8. #8
    Join Date
    May 2011
    Location
    Nova Scotia
    Posts
    35
    Plugin Contributions
    0

    Default Re: Admin Time Zone/Location Incorrect

    Quote Originally Posted by DrByte View Post
    'Canada/Atlantic' is not a valid timezone for PHP according to http://www.php.net/manual/en/timezones.php
    Try 'America/Halifax' instead.
    Canada/Halifax works fine on my zencart website I will try it

  9. #9
    Join Date
    May 2011
    Location
    Nova Scotia
    Posts
    35
    Plugin Contributions
    0

    Default Re: Admin Time Zone/Location Incorrect

    Nope didn't work

  10. #10
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Admin Time Zone/Location Incorrect

    Then something else in your site's PHP files is setting it to Phoenix. (Perhaps you've specified the timezone in another file someplace, and that's overriding this one)

    Search for Phoenix using the bottom search in the Developers Toolkit
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Customer order confirmation time is incorrect in Admin
    By benxp in forum Managing Customers and Orders
    Replies: 5
    Last Post: 29 Jun 2014, 12:55 AM
  2. Shopping Cart and Admin displaying incorrect date/time
    By behofmann in forum General Questions
    Replies: 1
    Last Post: 12 Mar 2010, 10:47 PM
  3. How do i cant change my Time Zone location
    By yudhizh in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Jan 2008, 07:20 AM
  4. Admin Time Zone
    By nataliajoe in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Jul 2007, 03:16 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