method

in_time_zone

v4.2.1 - Show latest stable - Class: String
in_time_zone(zone = ::Time.zone)
public

Converts String to a TimeWithZone in the current zone if Time.zone or Time.zone_default is set, otherwise converts String to a Time via String#to_time