Method: Kiss::Format::DateTime.convert_value_utc_to_local
- Defined in:
- lib/kiss/format.rb
.convert_value_utc_to_local(value, context) ⇒ Object
132 133 134 135 136 137 138 139 |
# File 'lib/kiss/format.rb', line 132 def convert_value_utc_to_local(value, context) if value && !value.zero? && (timezone = context[:timezone]) timezone = TZInfo::Timezone.get(timezone) if timezone.is_a?(String) timezone.utc_to_local(value) else value end end |