Class: DateTime
- Inherits:
-
Object
- Object
- DateTime
- Defined in:
- lib/time_zone_hack.rb
Instance Method Summary collapse
Instance Method Details
#convert_time_zone(to_zone) ⇒ Object
14 15 16 |
# File 'lib/time_zone_hack.rb', line 14 def convert_time_zone(to_zone) self.to_time.convert_time_zone(to_zone).to_datetime end |