Module: DataMapper::Zone::Types

Included in:
Property::ZonedTime
Defined in:
lib/dm-zone-types.rb

Class Method Summary collapse

Class Method Details

.storage_zoneObject



16
17
18
# File 'lib/dm-zone-types.rb', line 16

def self.storage_zone
  @storage_zone ||= ActiveSupport::TimeZone["UTC"]
end

.storage_zone=(zone) ⇒ Object



20
21
22
# File 'lib/dm-zone-types.rb', line 20

def self.storage_zone=(zone)
  @storage_zone = ActiveSupport::TimeZone[zone]
end