From 6c8172c7cf1e1c581e1e19a8ed84d95bcfeaa7eb Mon Sep 17 00:00:00 2001 From: Francesco Marano Date: Wed, 3 Jun 2015 16:03:01 +0200 Subject: [PATCH] Removed `Time.parse('2000-01-01')` expedient --- lib/common/common_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/common_helper.rb b/lib/common/common_helper.rb index 03c5f7dd..3027d695 100644 --- a/lib/common/common_helper.rb +++ b/lib/common/common_helper.rb @@ -89,8 +89,8 @@ def last_update end def update_required? - date = last_update or Time.parse('2000-01-01') - date < 5.days.ago + date = last_update + (true if date.nil?) or (date < 5.days.ago) end # Define colors