Page 1 of 1

The timezone-bug

PostPosted: Mon Apr 03, 2006 4:51 am
Author: evolver
I'm just wondering if there are plans to fix this issue with KisMod.

The bug-fix on integraMOD.com didn't work for everyone.
Problems remain when the timezone is different than the servertime of IntegraMOD.

Even on this forum, it's not working properly!!!
Todays and yesterdays don't change right after midnight when you are at a different timezone than the server.
[flash=,]http://www.stelplaats.be/screenshots/kismod/today-yesterday.jpg[/flash:104it8me]


And...this is not only a today-yesterday problem!!!!

Not to be ignored:
[size=99px]http]
[flash=,:104it8me]http://www.stelplaats.be/screenshots/kismod/messages.jpg[/flash:104it8me]

PostPosted: Mon Apr 03, 2006 10:24 am
Author: Eon
haha I made someone elses post. LOL Yeah I hate having birthdays showing up a day ahead of time. Makes you look like an idiot if you don't actually check the date and post on the calendar. LOL

Re: The timezone-bug

PostPosted: Fri Apr 07, 2006 6:37 am
Author: Michaelo
Re dates, Today/Tomorrow etc.,

The Today/Yesterday mod does not calculate dates, it only changes the appearance based on the date returned by the date function. It would appear from the errors above that somewhere in the code there is at least one other function being used (probably hard coded) to return a date with a different starting point.

Will make a note of this for the future and when time allows we will examine all time calculation for every page and replace any code that differsà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

Mike

PostPosted: Fri Apr 07, 2006 6:51 am
Author: Simon N
I think much of this can be got around by playing with the server timezone settings compared to your boards and users.

For instance my server is actually +1 hours but setting the server timezone to +1 messes things up. instead I set it to GMT (the same as my users) then forced british summertime upon all....this fixed any errors.

I do however have a 99% UK membershipbase so its easy to do such things without complaints.

Re: The timezone-bug

PostPosted: Mon Apr 10, 2006 3:21 pm
Author: evolver
Addition:
Also times in chatbox are servertime, not profiletime...

PostPosted: Tue May 02, 2006 8:28 pm
Author: Michaelo
Evolver, any more input on this?
Everything is working for me (GMT with Summertime forced)

PostPosted: Wed May 03, 2006 6:00 am
Author: evolver
"Michaelo";p="4221" wrote:Evolver, any more input on this?
Everything is working for me (GMT with Summertime forced)

I still have that error...

My servertime is GMT-5
I live in Belgium, and all my forum-members are colleagues (also from Belgium)...
Haven't found any way to change that error (like Simon N did)... <img>

I have asked my host if it were possible to change servertime.
Their response was negative, my webhost is in the Netherlands (same timezone as Belgium), but their servers are located elsewhere...

"My webhost" wrote:Geachte ...,

Bedankt voor uw bericht, de servertijd wijkt inderdaad af omdat al onze servers momenteel in ons datacentrum in Amerika zijn gestationeerd, helaas is het voor ons op dit moment echter niet mogelijk om dit aan te passen, excuses voor het eventuele ongemak.

U zou eventueel echter wel in uw eventuele PHP scripts een z.g. time offset kunnen inbouwen om de tijd aan te passen (http://nl2.php.net/manual/nl/ref.datetime.php).

Mocht u verdere vragen hebben hoor ik deze graag.

Met vriendelijke groet,

Mike


I have tried to put the config on GMT, and forced the config+ with GMT+6.
[hr:h9bk4qnq][font=Courier New:h9bk4qnq]Je laatste bezoek was Gisteren om 3:37
Het is nu Wo 03 Mei 2006, 15:16[/font:h9bk4qnq][hr:h9bk4qnq]
Well, my last visit was past night, so today (vandaag), not yesterday (gisteren)...it's no good...

By the way, you are talking about forcing summertime, but we do use summertime right now (Belgium uses daylightsavingtime)...

Re: The timezone-bug

PostPosted: Wed May 03, 2006 7:01 am
Author: Michaelo
Hi evolver, I am trying to get my heard around thisà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ When you view post the date reflects you local time and not the post time or the actual post converted for your time zone or <img>

I just realised I dont know what was actually intended but once I know we can fix ità¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦
Mike

Re: The timezone-bug

PostPosted: Wed May 03, 2006 7:22 am
Author: evolver
My timezone is GMT+1 summertime
My server located at GMT-5
So there is a difference of 6 hours.

The best way to configurate should be:
Config at servertime GMT-5,
Profiletime (config+) at GMT+1

For the time to be right on my site, profiletime (config+) always has to be servertime+6...
Config > Profiletime (config+)
GMT-5 > GMT+1
GMT-4 > GMT+2
GMT-3 > GMT+3
GMT-2 > GMT+4
GMT-1 > GMT+5
GMT > GMT+6

But, no matter how I do it, I keep getting today an yesterday wrong...
It would only be right when having the servertime at local time...

PostPosted: Thu May 04, 2006 2:28 pm
Author: Eon
I have just the opposite problem. I have posts that were made yesterday at 6pm, and they show up as "Today" at 6 pm and it is only 1 pm.. <img>

PostPosted: Thu May 04, 2006 2:44 pm
Author: Eon
Like the post I just made, I made it at 4:28pm, and it shows up as 9:28pm.. It is not adjusting for the user timezones or something..

Re: The timezone-bug

PostPosted: Sun May 14, 2006 3:08 pm
Author: evolver
I have fixed the today/yesterday - timebug [url=http]HERE[/url]

However, this doesn't fix the chatbox to be at usertime yet.
Also the minical topic-search still breaks out of the daytime for users at a different timezone.