vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: System Improvements :: Suggestions :: Time - View Topic
Topic Rating: *****
Printable View
Charles Stover
New Member
*

[Avatar]

Posts: 31
Status: Offline
Gender: Male
Location: Canada
Age: 34
Joined:  
Reputation: 0%  


pmwwwmsnyahooaimgtalkicqxfire
Time (12th Mar 08 at 5:27pm UTC)
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.

Image
Fel!x
Full Member
***

[AVATAR]

Posts: 171
Status: Offline
Gender: Male
Location: Sydney
Age: 31
Joined:  
Reputation: 3%  


pmmsn
Re: Time (13th Mar 08 at 7:36am UTC)
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}

Image
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Time (13th Mar 08 at 7:40am UTC)
 
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}

rroll.to— Shorten a link, rickroll your friends.
Charles Stover
New Member
*

[Avatar]

Posts: 31
Status: Offline
Gender: Male
Location: Canada
Age: 34
Joined:  
Reputation: 0%  


pmwwwmsnyahooaimgtalkicqxfire
Re: Time (18th Mar 08 at 3:42am UTC)
 
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.

Image
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Time (24th Mar 08 at 7:00pm UTC)
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}

Image
 Printable View

All times are GMT+0 :: The current time is 2:44am
Page generated in 2.079 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums