Date manipulation: Difference between revisions

m
Line 388:
require 'active_support'
zone = ActiveSupport::TimeZone['Beijing']
remote = zone.at(new.to_f)
# or, remote = new.in_time_zone('Beijing')
puts remote.rfc2822
puts remote.zone</lang>
Anonymous user