Hey.
The
time function gives you the current time as a Unix timestamp, which you can format into readable dates using the
date function. - It is generally best to store dates as timestamps, or at least using the GMT timezone, so you can more easily manipulate what timezone is to be used to display it.
Getting the client's timezone is trickier, though. If your users register for the site, then you would be best off asking them to choose the timezone they want used during the registration process. If not, you will have to resort to something like geo-location via the IP address.