-3
Time.zone = 'Hawaii'  # => "Hawaii"
Time.zone.now         # => Wed, 23 Jan 2008 20:24:27 HST -10:00

我想做类似的事情Time.zone('Hawaii').now

4

1 回答 1

1
Time.now.in_time_zone("Hawaii")
于 2013-05-04T12:56:16.697 回答