mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
Fixed codeclimate issue
This commit is contained in:
parent
045c74b7e2
commit
1b1f7eadf5
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ module Repp
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_date(date_param)
|
def to_date(date_param)
|
||||||
return Date.today if date_param.blank?
|
return Time.zone.today if date_param.blank?
|
||||||
|
|
||||||
Date.strptime(date_param, '%m.%y')
|
Date.strptime(date_param, '%m.%y')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue