[PHP] Returning client time and date

Soldato
Joined
15 Jan 2004
Posts
10,198
How do you return the time and date of the person browsing a page?

Do you need to format time() to the users timezone? As it keeps returning UTC time (hour behind)?
 
Yeah, but that only works for people in the UK. Is there anyway to detect the users timezone, or would I have to use javascript?
 
Back
Top Bottom