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)
As Joonas said, UNIX timestamps are by definition UTC, but you could hack something like this together to mimic timezone-specific timestamps if you really need to: