@robguthrie The values returned by this script (e.g "Pacific/Tarawa") are in IANA format which is not the same as the values in time_zone_select (e.g. "Wellington"), so it isn't going to work saving the value from this script directly and then assigning it to motion_close_at_time_zone. We need to somehow translate the timezone value from javascript into the Rails format.