How to convert time from one timezone to another


     How to convert utc time to a time in a particular time zone. As I
need to display local time of timezone(-05:00).

Thank you,

use the ruby method local time. in my example, i have an object post with an attribute created_at that is a date/time. You display this in local time with formatting as follows:

<%= post.created_at.localtime.strftime("%-m/%-d/%Y at %-I:%M %p") %>