1

I wanted to convert date which is in GMT to other Timezone date. All i have is the offset of that timezone which is in following format GMT+05:30.

I have refereed many question but most of it was converting using timezone identifier.

How can i get this to work. Thanks

Chirag B
  • 2,106
  • 2
  • 20
  • 35
  • 1
    Check this ..you will easily find tons of articles on google/stack etc http://www.php.net/manual/en/datetime.gettimezone.php also check for supported timezones if you need at later http://www.php.net/manual/en/timezones.php & start searching/reading from here http://www.php.net/manual/en/intro.datetime.php – swapnesh Mar 21 '13 at 09:26
  • Its better to save the timezone instead of offset – Arun Unnikrishnan Mar 21 '13 at 09:47
  • Do you have the date as a string? – Salman A Mar 21 '13 at 09:57
  • @SalmanA Yes it string in UTC format – Chirag B Mar 21 '13 at 10:00
  • possible duplicate of [Convert UTC offset to timezone or date](http://stackoverflow.com/questions/11820718/convert-utc-offset-to-timezone-or-date) also http://stackoverflow.com/questions/1923569/php-echo-timezone-based-on-gmt-offset – vascowhite Mar 22 '13 at 11:12

0 Answers0