I have a problem with a TIME OFFSET. My default time offset is +14 hours and at first it looks like it is working correctly. Although it will show last post according to the offset time, calendar is still showing a date in red according to original server time.
For instance, I am loging into my forum from Australia, but my server is in USA. Instead showing me Monday in color RED (14.08.06) it is still showing me Sunday in color RED.
For that reason LAST POST cell will display my post from yesterday as if it was written today. So instead of displaying yesterday's date it displays word TODAY at 9:06 AM. And posts entered today will display today's date (which is in Australia 14.08.96).
Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#2635 - 08/13/0610:10 PMRe: Default time offset
[Re: Markus_003]
_________________________ Version v7.5.6 < Threads satisfaction status People who inspire me RickGizmo Ian David jgeoff ntdoc Oooo i hear 8 is coming? just after 7 my friend.
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
The calendar portion is a cache issue. The calendar is cached off of the local time so it doesn't have to rebuild events every page load. I'm going to need to see if I can somehow use some javascript to highlight the appropriate day depending on the user preference.
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
This should be fixed for b4. Using javascript to highlight the current date in the calendar, and there was a slight bug in the time conversion where it wasn't taking into account the server time offset when showing the last post dates.
Current date is fixed, and the time showing in the last post dates is shown according to the server time offset, but word TODAY or YESTERDAY next to the date is still calculated according to the original server time, and not according to the time offset. Therefore all post written yesterday afternoon are still shown as TODAY.
Same deal here, but vice-versa. My time offset is -1, which should make right now 11:20pm, but the posts made today are saying "yesterday" cuz the server time is 12:20am.
Just throwing in my $0.02 on this issue, since my wife brought it up.
---Jamin
_________________________
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."