jstz to ruby code added to motion