Page 1 of 7 123 ... LastLast
Results 1 to 10 of 61
  1. #1
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,326
    Plugin Contributions
    5

    Default Time Zone Fix Support Thread

    This is the official support thread for this new mod.

    This mod is available for download here: Time Zone Fix

    This module allows you to set the Server PHP and MySql time zone to your local time zone in your Zen-Cart website, if you are in a situation where your store is in a different time zone from the server on which it is hosted. (For example, your store is based in Australia but is hosted on a server in the USA.)

    This module replaces the previous Time Zone Offset mod.
    Much simpler and overwrites only 1 core file.
    When working it fixes all known Time Zone problems.

  2. #2
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,428
    Plugin Contributions
    3

    Default Re: Time Zone Fix Support Thread

    Cheers Gilby

    Works perfectly for me

    Thanks
    Nigel
    Webzings Design
    The last couple of Zen-Cart sites we have worked on, Darncat Designs, Sweet Brucies

  3. #3
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,326
    Plugin Contributions
    5

    Default Re: Time Zone Fix Support Thread

    Quote Originally Posted by nigelt74 View Post
    Cheers Gilby

    Works perfectly for me

    Thanks
    Good to hear.
    And, Thanks for testing the beta version for me last year

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,039
    Plugin Contributions
    31

    Default Re: Time Zone Fix Support Thread

    Gilby,

    noticed this change from the beta and the new version

    Beta Version

    PHP Code:
            // begin mod to set mysql timezone (gilby)
            
    if (getenv('TZ')) {
              @
    mysql_query("SET time_zone = '" substr_replace(date("O"),":",-2,0) . "'"$this->link);
            }
            
    // end mod to set mysql timezone (gilby) 
    New Version

    PHP Code:
            // begin mod to set mysql timezone (gilby)
              
    @mysql_query("SET time_zone = '" substr_replace(date("O"),":",-2,0) . "'"$this->link);
            
    // end mod to set mysql timezone (gilby) 
    Will this make any difference to how things work.

  5. #5
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,326
    Plugin Contributions
    5

    Default Re: Time Zone Fix Support Thread

    Quote Originally Posted by clydejones View Post
    Gilby,

    noticed this change from the beta and the new version

    Beta Version

    PHP Code:
            // begin mod to set mysql timezone (gilby)
            
    if (getenv('TZ')) {
              @
    mysql_query("SET time_zone = '" substr_replace(date("O"),":",-2,0) . "'"$this->link);
            }
            
    // end mod to set mysql timezone (gilby) 
    New Version

    PHP Code:
            // begin mod to set mysql timezone (gilby)
              
    @mysql_query("SET time_zone = '" substr_replace(date("O"),":",-2,0) . "'"$this->link);
            
    // end mod to set mysql timezone (gilby) 
    Will this make any difference to how things work.
    No it won't
    The beta version just checked that you had indeed set the TZ variable, hopefully to your local time.

    Removing that test still sets the mysql time to be the same as the php time.

    I used the TZ variable as it is a backwardly supported way to set the php time.

    In future you may in php5.3 set the php time a different way.
    If you do then the mysql time will still be updated.

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,039
    Plugin Contributions
    31

    Default Re: Time Zone Fix Support Thread

    Quote Originally Posted by gilby View Post
    No it won't
    The beta version just checked that you had indeed set the TZ variable, hopefully to your local time.

    Removing that test still sets the mysql time to be the same as the php time.

    I used the TZ variable as it is a backwardly supported way to set the php time.

    In future you may in php5.3 set the php time a different way.
    If you do then the mysql time will still be updated.
    OK. Many thanks.

  7. #7
    Join Date
    Jan 2011
    Posts
    61
    Plugin Contributions
    0

    Default Re: Time Zone Fix Support Thread

    Hi, just wanted to add my thanks for this mod. An elegant solution and much appreciated.

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    4,478
    Plugin Contributions
    121

    Default Re: Time Zone Fix Support Thread

    Yep, works like a charm. Thanks for your contribution!
    Scott C Wilson, That Software Guy, Plugin Moderator
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  9. #9
    Join Date
    Feb 2011
    Posts
    2
    Plugin Contributions
    0

    Default Re: Time Zone Fix Support Thread

    Is very good and easy. Many thanks

  10. #10
    Join Date
    Nov 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: Time Zone Fix Support Thread

    this is straight-forward excellent mod for the timezone fix.

 

 
Page 1 of 7 123 ... LastLast

Similar Threads

  1. BackUp ZC [Support Thread]
    By skipwater in forum All Other Contributions/Addons
    Replies: 222
    Last Post: 14 May 2013, 08:48 PM
  2. Save For Later Support Thread
    By swguy in forum All Other Contributions/Addons
    Replies: 116
    Last Post: 3 May 2013, 05:35 PM
  3. Multiple Zone Rates Support Thread
    By totalsam in forum Addon Shipping Modules
    Replies: 42
    Last Post: 23 Nov 2012, 05:04 PM
  4. PO Box Ban [support thread]
    By Steven300 in forum Addon Shipping Modules
    Replies: 23
    Last Post: 28 Oct 2009, 11:58 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
  •