mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Further improve time comparison in Project model
This commit is contained in:
parent
ece69b8540
commit
8e13059df1
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ class Project < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def age_in_days
|
||||
@age_in_days ||= (Time.now.to_date - created_at.to_date).to_i + 1
|
||||
@age_in_days ||= (Time.current.to_date - created_at.to_date).to_i + 1
|
||||
end
|
||||
|
||||
def self.import(filename, params, user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue