how about this…
$original = new DateTime("now", new DateTimeZone('UTC'));
$timezoneName = timezone_name_from_abbr("", 3*3600, false);
$modified = $original->setTimezone(new DateTimezone($timezoneName));
More Related Contents:
- Timezone conversion in php
- How to find day of week in php in a specific timezone
- php convert datetime to UTC
- PHP, MySQL and Time Zones
- Convert UTC dates to local time in PHP
- Set timezone in PHP and MySQL
- How to update timezonedb in PHP (updating timezones info)?
- How to tell if a timezone observes daylight saving at any time of the year?
- Different timezone_types on DateTime object
- How to convert UTC datetime to another timezone?
- How to detect Ambiguous and Invalid DateTime in PHP?
- Exactly parse string to datetime format [closed]
- Display which day it is? sunday or monday “php coding”? [closed]
- PHP: Return all dates between two dates in an array [duplicate]
- Finding the number of days between two dates
- Why can’t I access DateTime->date in PHP’s DateTime class?
- “date(): It is not safe to rely on the system’s timezone settings…”
- Compare given date with today
- How we can add two date intervals in PHP
- Get the date of next monday, tuesday, etc
- Object of class DateTime could not be converted to string
- Find Month difference in php? [duplicate]
- How do I get Greenwich Mean Time in PHP?
- PHP, Get tomorrows date from date
- Get the First or Last Friday in a Month
- Is there a built-in function or plugin to handle date formatting in JavaScript?
- How to find timezone ID from IP address/country name in PHP?
- Storing time information: Timezone required?
- adding 1 day to a DATETIME format value
- day of the week to day number (Monday = 1, Tuesday = 2)