Sha256: c22109620e34ca906eaee8aaba8258299a4348d963dc29d0b52cbd68003e7db3
Contents?: true
Size: 328 Bytes
Versions: 4
Compression:
Stored size: 328 Bytes
Contents
require 'radiant/config' module LocalTime def adjust_time(time) if (tz_string = Radiant::Config["local.timezone"]) and timezone = (ActiveSupport::TimeZone[tz_string] || ActiveSupport::TimeZone[tz_string.to_i]) # adjust time time.in_time_zone(timezone).time else time end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
radiant-0.7.2 | lib/local_time.rb |
radiant-0.7.0 | lib/local_time.rb |
radiant-0.7.1 | lib/local_time.rb |
radiant-0.8.0 | lib/local_time.rb |