Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2008
    Posts
    168
    Plugin Contributions
    0

    help question v1.50 Change admin time zone

    Hello

    Is there a way I can change the admin time zone to show where I actually am? There is a 6 hours difference which creates some small issues store-wise

    using zc 1.5

    Thanks for the help!
    www.alepia.ch Alepia suisse

  2. #2
    Join Date
    Jun 2010
    Location
    Norwich, UK
    Posts
    67
    Plugin Contributions
    0

    Default Re: v1.50 Change admin time zone

    I believe Zen Cart simply takes the server time zone, so this is most likely an issue in your php.ini file.

    Can you advise what setting your hosting provider has for date.timezone? You can check the php.ini info by uploading a PHP file with the command phpinfo() and then reviewing the output via browser.
    UK Web Hosting for Designers & Developers by TerraNetwork (Norwich, UK) for websites of all sizes.
    Zen Cart Web Hosting from £3.33 per month
    Contact info AT terranetwork DOT net for quotes and advice

  3. #3
    Join Date
    Jan 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: v1.50 Change admin time zone

    In your php.ini file type in date.timezone=-0700GMT

    The numbers in red are your time zone relevant to the gmt.

  4. #4
    Join Date
    Apr 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: v1.50 Change admin time zone

    Quote Originally Posted by carigrafix View Post
    In your php.ini file type in date.timezone=-0700GMT

    The numbers in red are your time zone relevant to the gmt.
    Another way to universally change your website is to add this line to your .htaccess file:

    SetEnv TZ 'America/New_York'

    The allowable time zone names can be found at:
    http://www.php.net/manual/en/timezones.php

  5. #5
    Join Date
    Jan 2004
    Posts
    58,261
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: v1.50 Change admin time zone

    Quote Originally Posted by inkspot View Post
    Another way to universally change your website is to add this line to your .htaccess file:

    SetEnv TZ 'America/New_York'

    The allowable time zone names can be found at:
    http://www.php.net/manual/en/timezones.php
    That used to be acceptable, before PHP 5.1.0.
    But, since PHP 5.1.0, the *correct* way is to set date.timezone in php.ini
    Quote from PHP documentation:
    Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate a E_NOTICE if the timezone isn't valid, and/or a E_WARNING message if using the system settings or the TZ environment variable.
    To avoid these errors, use the INI setting date.timezone to set the default timezone.
    That said, there's nothing wrong with doing both ;)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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. v150 How to change time zone?
    By nnagarajan in forum Customization from the Admin
    Replies: 1
    Last Post: 25 Jun 2012, 01:29 PM
  2. v139h Time zone change...
    By andycowboy in forum Customization from the Admin
    Replies: 1
    Last Post: 25 Mar 2012, 05:05 AM
  3. change the time zone
    By christianstogether in forum General Questions
    Replies: 1
    Last Post: 22 Oct 2010, 07:12 PM
  4. How do I change the time zone on the admin panel?
    By kylex in forum General Questions
    Replies: 1
    Last Post: 11 May 2010, 11:18 PM
  5. Can I change the time zone?
    By craftydesigner31 in forum General Questions
    Replies: 2
    Last Post: 3 Jan 2010, 11:03 PM

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
  •