Class: ReeDatetime::InDefaultTimeZone
- Inherits:
-
Object
- Object
- ReeDatetime::InDefaultTimeZone
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/in_default_time_zone.rb
Instance Method Summary collapse
Instance Method Details
#call(date_time) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/in_default_time_zone.rb', line 14 def call(date_time) zone = get_default_time_zone new_zone_offset = offset_to_string( find_tzinfo(zone).utc_offset ) date_time.new_offset(new_zone_offset) end |