Results 1 to 10 of 36

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Ipswich, UK
    Posts
    21
    Plugin Contributions
    0

    Default Time Zone Offset Problem

    Hello,

    Ive just installed the Time Zone Offset contribution but im in a bit of a circle trying to get it to work on the admin side. I keep getting an error with the 1.3.0.2 version saying:

    "Time Zone Offset is set to +5 Hours. The difference between Server & Database time is -8 Hours."

    So, duly, I change the offset to -8 hours and the message swaps round:

    "Time Zone Offset is set to -8 Hours. The difference between Server & Database time is 5 Hours."

    My server is located in California and I am based in the UK. Im sure its something simple im missing but I cant quite figure out what it is. Any help would be grately appreciated!
    Adam Boyle

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

    Default Re: Time Zone Offset Problem

    To get this message you must have installed the 2 optional files.

    One of these files you have to select your time zone by editing a TZ setting
    admin/includes/extra_configures/time_offset.php
    You can check if this is working correcting by checking the time & date displayed in admin. Apparantly this does not work on all servers. If it doesn't then there is no point installing the 2nd optional header file which is giving the warning message.

    If this is correct you can install the optional header file which displays the difference between the new server time as displayed in admin and the time zone offset set for the mysql database.
    admin/includes/header.php

    +5 sounds about right for you so I would suspect you haven't edited
    admin/includes/extra_configures/time_offset.php
    to point to your time zone (the default setting is my zone in australia +14 hours)

    Try editing this file to get the admin heading to display your time zone first, let us know it this works.

  3. #3
    Join Date
    Nov 2005
    Location
    Ipswich, UK
    Posts
    21
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    Thanks for your reply, I think the problem must be with the server because no matter what i change the time zone offset value to the admin time/date remains the same.

    Thanks very much for your help, just need to remove the optional header file!!

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

    Default Re: Time Zone Offset Problem

    Quote Originally Posted by AdamBoyle
    Thanks for your reply, I think the problem must be with the server because no matter what i change the time zone offset value to the admin time/date remains the same.

    Thanks very much for your help, just need to remove the optional header file!!
    The time zone offset value in admin does not affect the admin time display.

    You need to edit
    admin/includes/extra_configures/time_offset.php
    which contains..
    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=Australia/Melbourne'); 
    ?>
    you need to change

    putenv ('TZ=Australia/Melbourne');

    to what ever your time zone is, you may have to google to find the valid text for your time zone

  5. #5
    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 ?

  6. #6
    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,

 

 

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