Ruby/Rails How to do this.
only modify the timezone of Time
2015-01-01 00:00:00 +0900 => 2015-01-01 00:00:00 +0000
Ruby/Rails How to do this.
only modify the timezone of Time
2015-01-01 00:00:00 +0900 => 2015-01-01 00:00:00 +0000
take this date in variable say currentDateTime:
then use following:
currentDateTime.change(:offset => "+0000")