vForums Support > System Improvements :: Suggestions :: > Time

Time - Posted By Charles Stover (gamechief) on 12th Mar 08 at 5:27pm
Timestamps should be set with JavaScript, so it automatically matches the user's time without having to save a time zone server-side, which the user has to set and update for every forum they're registered on, and... well... you know all that.
If you send a time()stamp instead, it'd be precise on every computer. Something like,
<span class="stamp" title="H:i:s | 11614849951351">12:17:03</span>
With some script at the bottom that parses all that to display the timestamp (which probably isn't valid in the example) in <span>s with the className stamp to the format given before " | ". But I'm sure you could come up with a sexier way of arranging the parameters. That's just a basic idea.

Then all times would be correct to-the-millisecond, with no server-side work.

Re: Time - Posted By Fel!x (felix) on 13th Mar 08 at 7:36am
I'm not exactly "code savvy" but if I remember correctly javascript isn't always enabled on peoples computers. If this were implemented wouldn't that alienate people making them have to enable it {Unsure}

But of course I would like to not have to set my time every forum I join... {Grin}

Re: Time - Posted By Marc (cr0w) on 13th Mar 08 at 7:40am
 
But of course I would like to not have to set my time every forum I join... {Grin}


Which is why the "Import Account" feature was created. {Wink}

I don't much like this idea, though. {Unsure}

Re: Time - Posted By Charles Stover (gamechief) on 18th Mar 08 at 3:42am
 
I'm not exactly "code savvy" but if I remember correctly javascript isn't always enabled on peoples computers. If this were implemented wouldn't that alienate people making them have to enable it {Unsure}

But of course I would like to not have to set my time every forum I join... {Grin}
The example I posted falls back on the server-side time for users without JavaScript enabled.

Re: Time - Posted By Ross (admin) on 24th Mar 08 at 7:00pm
I think this is a pretty good idea. It'd be pretty easy to implement server side as all times are handled by a single core function. It's the javascript part where I'd struggle to come up with something efficient {Unsure}