Page 1 of 2 12 LastLast
Results 1 to 10 of 36

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    hi, thanks for the help previously.

    so if i am from Singapore, what should i put ?

    i tried to google but it always dun work.
    Singapore, Singapore for GMT +8 ?

  2. #2
    Join Date
    Dec 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    EDITED

    http://sg.php.net/manual/en/timezones.php

    i found it myself, for the benefit of others, it uses PHP date function, so yup,

  3. #3
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    This mod was working perfectly for me until an hour ago. I've not changed anything, but suddenly the following message has appeard in the header of my admin area:

    Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /home3/limelite/public_html/****ADMIN****/includes/extra_configures/time_offset.php on line 8
    Warning TIME ZONE OFFSET ERROR! Time Zone Offset is set to +5 Hours. The difference between Server & Database time is -5 Hours.
    Warning 2009-10-05 04:57:10: TZ Server Time
    Warning 2009-10-05 09:57:10: Offset Database Server Time:

    I remember I had similar messages at the install stage, but I added the optional files and edited the time_offset.php to this:

    PHP Code:
    <?php 
    //You can modify the TZ (Time Zone) by using one of the following offsets
    //TZ=America/Los_Angeles
    //TZ=America/Denver
    //TZ=America/Chicago
    //TZ=America/New_York

    putenv ('TZ=Europe/London'); 
    ?>
    Which did work, until now.

    Anyone have any idea what's gone wrong?

    I've tried changing the +5 in the admin My Store area to different cariables, +6 +4 etc., etc., but the same error every time.

    Anyone?
    Last edited by limelites; 5 Oct 2009 at 10:05 AM.

  4. #4

    Default Re: Time Zone Offset Problem

    Hi,

    I was having the same problem too

    "Time Zone Offset is set to +13 Hours. The difference between Server & Database time is 2 Hours."

    When I change the offset to +2 hours and the message swaps round:

    "Time Zone Offset is set to +2 Hours. The difference between Server & Database time is 13 Hours."

    Then I added the different together and changed it to +15, fixed the problem.

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

    Default Re: Time Zone Offset Problem

    Quote Originally Posted by Defanci View Post
    Hi,

    I was having the same problem too

    "Time Zone Offset is set to +13 Hours. The difference between Server & Database time is 2 Hours."

    When I change the offset to +2 hours and the message swaps round:

    "Time Zone Offset is set to +2 Hours. The difference between Server & Database time is 13 Hours."

    Then I added the different together and changed it to +15, fixed the problem.
    Its a bit cryptic...
    When its set to +13 hours. It telling you that it is NOW +2 hours out

    So...... Try +15 hours (+13 +2)

  6. #6
    Join Date
    Jan 2009
    Posts
    126
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    Hey,

    So how would you integrate this with ZC. I know the Time Zone Offset mod used MySQL functions to change the date, but there is apparently a better way to do it with php now pho has improved. Anyone got any ideas how to do this?

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

    Default Re: Time Zone Offset Problem

    Quote Originally Posted by totalsam View Post
    Hey,

    So how would you integrate this with ZC. I know the Time Zone Offset mod used MySQL functions to change the date, but there is apparently a better way to do it with php now pho has improved. Anyone got any ideas how to do this?
    There is 2 parts
    Setting the php time
    and fixing the mysql time

    This mod is designed to adjust the mysql database time

    The php time can be set with the set TZ=(your country/city)

  8. #8
    Join Date
    Mar 2010
    Posts
    41
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    Hi all

    I know this thread is abit old but my host is based in the states and I'm in the uk.

    Put this code in the .htaccess in the root of your site.

    SetEnv TZ Europe/London

    Works for me. Hope it helps.

    Rgds
    Badger

  9. #9
    Join Date
    Jul 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    this mod is so useful, i wonder if i could also set the time of reviews to my local time just as what it does to create_account and customer_order ?

  10. #10
    Join Date
    Jul 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    i use zencart 1.38a, do i need to update time zone offset mod to the newest version published on may 2nd 2010 ?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Time Zone Offset problem
    By trappersam in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 18 Oct 2007, 12:08 PM
  2. Time Zone Offset
    By harry2cool in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 26 Jul 2006, 09:31 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