Calender link wrong date

Started by hobox, December 13, 2007, 01:45:37 AM

Previous topic - Next topic

hobox

I seems like the calender link is dependent on time offset of the user reading a post, so when people who have entered for example +7 in time offset will see a post linked to the 23rd of dec instead of 22nd as it's entered. When looking in the calender it shows up ok, it is just in a linked post that it's wrong.

KGIII

I suspect it is a matter of dynamic versus static and is done for resource consumption reasons. When posted it may be that it is getting the time and date based on the user's settings and setting it to that. I don't really know - just giving you the reason that it may be happening and why it may be intentional. Posts can use a LOT of server resources. Adding additional checks for the time zone for each user that loads it may be a reason that that is done. I'm support, not a developer. Actually, wait... I'm on hiatus so I'm really just giving you a reason that it might be that way and not really sure of it.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

hobox


SleePy

It is just applying your time offset to the post.
The simple fact is. If you plan it for 5 pm on the 22nd and somebody is +8 hours ahead, then it will show on the next day at 1 am for them. Adjusting to their time offset of when it would really happen for them.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

hobox

Quote from: SleePy on December 13, 2007, 10:54:14 AM
It is just applying your time offset to the post.
The simple fact is. If you plan it for 5 pm on the 22nd and somebody is +8 hours ahead, then it will show on the next day at 1 am for them. Adjusting to their time offset of when it would really happen for them.

But you don't add times, just dates. So there is no point in adding the time offset.

If I create a post on my forum to say "Merry Christmas" it shows for half of my clients as the 26th :) That can't be the point, can it?

I use 114 and never seen any option on adding time in the calender, just the dates.

SleePy

Did you set a time the event occurs?
I am very sure it applies the users time offset. If you go to your profile and change your time offset forward or backward enough the time will change.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

hobox

Yes it changes as I change my time zone as I wrote earlier, BUT you don't set time for events in the calender. That is why I find it strange that the time offset effects it and as I also wrote it only affects it when reading a linked post. If you look at the event in the calender it shows the correct date.

SleePy

That is true..
I think it would be logged off 0 hours or possibly the hour of the day.

I will link this in the team boards and see what the others have to say.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

hobox

If the calender-linked posts just shows the same as the actual calender it would be great ;)

SleePy

The developers have commented this has been fixed. I would assume only in 2.0 though.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

hobox

So I can't look forward to see this implemented in 1.1.5?

Too bad, but glad you saw it my way and that I have contributed something to this excellent forum.

SleePy

Looking from the latest build of SMF I don't see it in the 1.1 changelog. So I would think it wouldn't be in 1.1.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: