edit date.now.to_time -> date.now.to_time.to_i at application.html.haml