How do I convert a date/time string (e.g. 2011-01-01 15:00:00) that is UTC to any given timezone php supports, such as America/New_York, or Europe/San_Marino.
Php – UTC Date/Time String to Timezone
PHPtimezoneutc
Related Topic
- Javascript – How to convert a JavaScript date to UTC
- Php – Reference — What does this symbol mean in PHP
- C# – DateTime vs DateTimeOffset
- Python – How to get a value of datetime.today() in Python that is “timezone aware”
- Javascript – Convert UTC Epoch to local date
- Python – How to make a timezone aware datetime object in Python
- Javascript – How to initialize a JavaScript Date to a particular time zone
Best Answer
PHP's
DateTime
object is pretty flexible.