Time#localtime will give you time in the current time zone of the machine on which the code is running:
> moment = Time.now.utc => 2011-03-14 15:15:58 UTC > moment.localtime => 2011-03-14 08:15:58 -0700
Update. If you want to switch to specific time zones, rather than your time zone, you are on the right track. However, instead of worrying about EST versus EDT, just go to the Eastern Time zone - he will know based on the bottom, whether EDT or EST:
> Time.now.utc.in_time_zone("Eastern Time (US & Canada)") => Mon, 14 Mar 2011 11:21:05 EDT -04:00 > (Time.now.utc + 10.months).in_time_zone("Eastern Time (US & Canada)") => Sat, 14 Jan 2012 10:21:18 EST -05:00
Dylan Markow Mar 14 2018-11-11T00: 00Z
source share