Showing time is users time zone?

He has: 2 posts

Joined: Nov 2003

How could you show the time in the users time zone? I wouldn't mind having to ask them for there time zone when they sign up, I just need to know how to convert it and what-not.

Thanks.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

JavaScript or Server-Side?

Busy's picture

He has: 6,151 posts

Joined: May 2001

use javascript (server side is run off server time) to capture the time when they sign up, compare it to GMT time and set their offset by how ever how many days, hours, minutes.
This isn't 100% it will display the time the person shows on their PC (which some could be way out, also some 12 and 24 hour clocks)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.