formatted time using rails helper