Time is off by an hour.

With this addon you'll be able to view planned events from GuildEventManager or GroupCalendar

Moderator: PoloDude

Time is off by an hour.

Postby Kindlen » Thu Nov 09, 2006 10:10 pm

I play on a central server (Terenas). Whenever I or any of my guildmates upload the GEM lua file the times for the raids are off by +1 hour.

Suggestions for how to fix this?
Kindlen
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Wed Oct 11, 2006 9:23 pm

Time is off by an hour.

Postby Kindlen » Tue Nov 14, 2006 1:49 am

Any help on this guys? The roster found at (http://imperialdefenders.terenas.myguil ... ntCalendar) shows all events off by one hour. It looks like this is occuring at the time that the GEM lua file is uploaded, as the date and time stored in the database matches the values displayed on the site.

Suggestions for where I can go to fix this. We play on Terenas.

I am also more than willing to invite a developer toon to the guild so that they can see it happen in real time.
Kindlen
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Wed Oct 11, 2006 9:23 pm

Time is off by an hour.

Postby Adariel » Mon Jan 01, 2007 4:34 pm

I am having the same issue ... I play on Garithos and have GEM set to use server times. Events show at 2 in game and at 3 on the site.

Using GEM 2.23 with no other apparent issues.
User avatar
Adariel
WR.net Apprentice
WR.net Apprentice
 
Posts: 36
Joined: Tue Jul 25, 2006 9:14 am

Re: Time is off by an hour.

Postby Adariel » Tue Jan 02, 2007 11:57 pm

This time offset issue has caused all kinds of misunderstandings in game for my guild, so I got motivated and poked around. I'm sure this is a very dirty way of doing it, but it works for the time being on my site.

In EventCalendar/functions.php,
find:
Code: Select all
function updateGemEvent($eventdata){


a few lines down it shows:
Code: Select all
      $date = date("Y-m-d G:i:s",$date);


Comment that out (rather than deleting - to preserve the original code just in case!):
Code: Select all
//      $date = date("Y-m-d G:i:s",$date);


and add after it:
Code: Select all
      $date_offset = "-1";
      if (isset($date_offset) && ereg("^(\\-|\\+)?([0-9]{1}|(1{1}[0-2]{1}))$", $date_offset)) {
         $hour = date("G", $date);
         $hour = $hour + $date_offset;
         $date = date("Y-m-d ",$date). $hour . date(":i:s",$date);
      } else
         $date = date("Y-m-d G:i:s",$date);


Change the actual $date_offset to whatever you need it to be so that your times show correctly.

For Group Calendar, I'm sure there is a setting somewhat similar - I didn't look cuz I don't use it. I make absolutely NO guarantees if this will work for everyone, but it worked for me so I'm content.

Hope this helps!
User avatar
Adariel
WR.net Apprentice
WR.net Apprentice
 
Posts: 36
Joined: Tue Jul 25, 2006 9:14 am

Re: Time is off by an hour.

Postby Demmox » Sun May 20, 2007 6:43 pm

Thnx a lot that solution works perfect for me :thumleft:
Last edited by Demmox on Sun May 20, 2007 6:43 pm, edited 1 time in total.
Demmox
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Fri Jan 05, 2007 7:50 am


Return to Event Calendar

Who is online

Users browsing this forum: No registered users and 1 guest

cron