#2634
08/13/2006 10:04 PM
|
Joined: Jul 2006
Posts: 47
journeyman
|
journeyman
Joined: Jul 2006
Posts: 47 |
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).
I hope this makes sence.
Last edited by Rick; 09/06/2006 12:38 PM.
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Ahh ha, That might be what my problem was.. The 23rd Hr As my server is +1
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jul 2006
Posts: 47
journeyman
|
journeyman
Joined: Jul 2006
Posts: 47 |
Mark, I have just seen description of your problem, and it looks to me that we are talking about the same problem.
For instance, take UBB.threads Version 7 Test forum. It is also showing my SUNDAY in red.
|
|
|
|
Joined: Jun 2006
Posts: 136
member
|
member
Joined: Jun 2006
Posts: 136 |
i am located in indonesia, with server in vancouver, using a +14 offset. yes, i experience the same problems.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
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.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
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.
|
|
|
|
Joined: Jul 2006
Posts: 47
journeyman
|
journeyman
Joined: Jul 2006
Posts: 47 |
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.
|
|
|
|
Joined: Jun 2006
Posts: 46
newbie
|
newbie
Joined: Jun 2006
Posts: 46 |
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."
|
|
|
|
Joined: Jul 2006
Posts: 47
journeyman
|
journeyman
Joined: Jul 2006
Posts: 47 |
My time offset is + 14, therefore I have to wait 14 hours for correct display.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Ugh, this little feature is a pain in the butt Back to work on it.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Ok, I think I finally have this one nailed down.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Does this mean no more chasing me with a hammer? :'(
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
Ok, I think I finally have this one nailed down. Well done Hmmm - just read the word 'think'
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
That's why I haven't moved this one yet. Will need it tested by some people
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
heck - I am in so many time zones both in Europe and the USA at the moment that I do not even know the current time.
|
|
|
|
Joined: Jul 2006
Posts: 47
journeyman
|
journeyman
Joined: Jul 2006
Posts: 47 |
Ok, I think I finally have this one nailed down. I am sorry Rick but time display next to post heading is still not working correctly. Today or Yesterda will be shown depending on original server time and not by adjusted server time, as it should. So in my case I still have to wait 14 hours for correct display.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
I don't get it. I've manually adjusted my time preferences, the server time, the time offset and everything displayed correctly. I may just have to end up taking this out completely because I can't seem to get this working for everyone. I'll give it one more shot.
Is it wrong for you in all areas? Or just on certain places?
Last edited by Rick; 09/13/2006 10:37 AM.
|
|
|
|
Joined: Jul 2006
Posts: 47
journeyman
|
journeyman
Joined: Jul 2006
Posts: 47 |
All areas? Same problem on this forum also.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Ok, so I totally reworked the math on this and have uploaded the changes here.
|
|
|
|
Joined: Jul 2006
Posts: 47
journeyman
|
journeyman
Joined: Jul 2006
Posts: 47 |
I quickly checked few sections of this forum and it looks like this time is working. I will keep my eye on it and will come back frequently during the day (well during the nigth ). Thank you for not giving up on this at first not so important issue. For some reason I like that feature (today, yesterday) but if is not displayed accurately then it is confusing.
|
|
|
|
Joined: Jul 2006
Posts: 47
journeyman
|
journeyman
Joined: Jul 2006
Posts: 47 |
Yes this time it looks like it is working.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
yay! Nothing better than finally fixing a bug that's been kicking my butt for awhile
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
I kick your butt and you don't fix me :nods:
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
I kick your butt and you don't fix me :nods: You're one of those bugs that I've given up on
|
|
|
|
Joined: Jun 2006
Posts: 196
enthusiast
|
enthusiast
Joined: Jun 2006
Posts: 196 |
I kick your butt and you don't fix me :nods: You're one of those bugs that I've given up on I never did figure out that time code, but don't wanna wait for RC1, so could you just PM me the code?
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
0 members (),
815
guests, and
186
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|