PHP: How do I convert a server timestamp to the user's timezone?

Posted by KeyStroke on Stack Overflow See other posts from Stack Overflow or by KeyStroke
Published on 2010-05-14T13:09:29Z Indexed on 2010/05/14 13:14 UTC
Read the original article Hit count: 165

Filed under:
|
|

Hi,

I'm currently storing times using the 'time()' function in the database. However, it's using the timezone of the server, and I'd like for each user to see the time according to their timezone (set in their profile).

How do I do the timestamp conversion? (and I mean from timestamp to timestamp, not to readable time)

Your help is appreciated

© Stack Overflow or respective owner

Related posts about php

Related posts about timezone