I store a date/time string in a database in GMT. (YYYY-MM-DD HH:MM:SS)
If I add " GMT" to the end of this string and then pass it to "strtotime", I get a date/time that is adjusted for my (server's) timezone. If I do not append the GMT, no adjustment occurs.
Two questions: 1. I'm assuming this is the normal function of strtotime although no reference to timezone adjustment is in the docs for the function.
- If I want to adjust to a timezone other than that of the server on which PHP is running, can I do that by setting some environment variable before calling strtotime? Or, is that OpSys dependent? Or would I need to use one of the many functions previously posted?
Thanks in advance.
R