Comments

SonyRyanS wrote on 3/4/2005, 12:29 PM
Yeah, should be fixed now. I was making it set to user's local timezone, and switched AM and PM. Let me know if you see any other wierdness.

-Ryan
Chienworks wrote on 3/4/2005, 12:31 PM
Ryan, i'm terribly curious ... how do you detect the user's local timezone? As far as i know this isn't part of the http protocol. If you have a method for doing this i would be very interested in knowing what it is. Thanks!
Spot|DSE wrote on 3/4/2005, 12:42 PM
You know, I've never once thought to look at the time of a post until you guys brought this up. Interesting.

Is the local time derived from the IP address and a region that the number is assigned/headers in the communication?
johnmeyer wrote on 3/4/2005, 12:44 PM
I assume the timezone info is just done with the zipcode or phone number you supply. I just checked, and that information is included in the records kept in the "forum settings."
Chienworks wrote on 3/4/2005, 12:45 PM
I don't think the IP address will do it since the geographic allocation of them approaches randomness, and changes from moment to moment. I just did a very throrough check of HTTP transactions and the information isn't included.

I'm guessing that the method they use is to send their date/time to the browser and use a javascript calculation to have the browser adjust it to local.
SonyRyanS wrote on 3/4/2005, 12:51 PM
Kinda. I use a 2-3 step process.

Step 1: Javascript to get the GMT Offset (which uses system time).
Step 2: Also use Javascript, send it to the server in an Img Request (so it's a silent submit). This gets written to a cookie by the server then.
Step 3: If there is a Cookie Value for GMT Offset present, then modify the Server's Post Date by that amount, else render it as default (which is Pacific time FYI).

I thought it was kinda clever personally :)
-Ryan
Chienworks wrote on 3/4/2005, 1:07 PM
Very clever indeed! I like it.

Too bad there isn't a non-javascript method though. I tend to get lots of visitors who refuse to use javascript for various reasons.
Orcatek wrote on 3/4/2005, 1:11 PM
What you will find is many browser lie. Netscape is really bad about this between versions or sub versions changing the reported offset.

We finally thru in the towel and switched to user registration info.
boomhower wrote on 3/4/2005, 1:14 PM
I'm sure this falls under "working out the kinks" but a couple of times today I've logged in and all the posts were from 2001???

I kept wondering why all the posts were asking about V3!! Started to think I was in the twilight zone until I looked at the date/time stamps.

Like all the new changes though.....

Keith
jetdv wrote on 3/4/2005, 2:18 PM
I've logged in and all the posts were from 2001???

I saw that once earlier - thought I was going bonkers until I refreshed again!
jetdv wrote on 3/4/2005, 2:19 PM
It appeas to be TODAY - and in MY timezone! The time does now read correct here.
PumiceT wrote on 3/4/2005, 2:26 PM
No way, can this be true??
stepfour wrote on 3/4/2005, 2:35 PM
I can't get the "older topics" link to go to older topics. It stays on newest topics.
SonyKSA wrote on 3/4/2005, 3:23 PM
In case you missed it in the sticky, I think that I've got the "older topic" bug sufficiently stomped. Let me know if you still see problems.
stepfour wrote on 3/4/2005, 5:20 PM
Yes, Older button okay now. Thanks. I had stopped reading the sticky post. I need to remember to look at the last date/time posted on that one when I come in.