The timezone-bug

IntegraMOD 141 Themes

Moderator: Integra Moderator

The timezone-bug

PostAuthor: evolver » Mon Apr 03, 2006 3:51 am

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]
Last edited by evolver on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

PostAuthor: Eon » Mon Apr 03, 2006 9:24 am

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
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

Re: The timezone-bug

PostAuthor: Michaelo » Fri Apr 07, 2006 5:37 am

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
Last edited by Michaelo on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1646
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 5:14 pm
Cash on hand: 0.00
Location: Dublin, Ireland

PostAuthor: Simon N » Fri Apr 07, 2006 5:51 am

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.
Last edited by Simon N on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[marq=left][url=http][img=left]http://www.tau-designs.org.uk/pictures/im2_88x32.png[/img][/url] | [url=http][img=left]http://www.free-riders.co.uk/images/banners/freeriders_88_31.gif[/img][/url][/marq]
User avatar
Simon N
Sr Integra Member
Sr Integra Member
 
Posts: 242
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 1:43 pm
Cash on hand: 0.00

Re: The timezone-bug

PostAuthor: evolver » Mon Apr 10, 2006 2:21 pm

Addition:
Also times in chatbox are servertime, not profiletime...
Last edited by evolver on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

PostAuthor: Michaelo » Tue May 02, 2006 7:28 pm

Evolver, any more input on this?
Everything is working for me (GMT with Summertime forced)
Last edited by Michaelo on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1646
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 5:14 pm
Cash on hand: 0.00
Location: Dublin, Ireland

PostAuthor: evolver » Wed May 03, 2006 5:00 am

"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)...
Last edited by evolver on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

Re: The timezone-bug

PostAuthor: Michaelo » Wed May 03, 2006 6:01 am

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
Last edited by Michaelo on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1646
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 5:14 pm
Cash on hand: 0.00
Location: Dublin, Ireland

Re: The timezone-bug

PostAuthor: evolver » Wed May 03, 2006 6:22 am

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...
Last edited by evolver on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

PostAuthor: Eon » Thu May 04, 2006 1:28 pm

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>
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

PostAuthor: Eon » Thu May 04, 2006 1:44 pm

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..
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

Re: The timezone-bug

PostAuthor: evolver » Sun May 14, 2006 2:08 pm

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.
Last edited by evolver on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende


Return to IntegraMOD 141

Who is online

Registered users: Bing [Bot], Google [Bot], Helter, Majestic-12 [Bot]