Change time to rails helper