Skip to content

Commit

Permalink
Merge pull request #42 from jnbt/fix-todays-date-always-utc
Browse files Browse the repository at this point in the history
Amend logic for obtaining todays date
  • Loading branch information
jnbt authored Nov 7, 2019
2 parents 430c205 + 81b2e7b commit 0f4fb83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def canceled_by_user?
# Get number of overdue days. If this is negative, it is not overdue.
# @return [Integer]
def overdue_days
(Date.today - expires_at.to_date).to_i
(Time.now.utc.to_date - expires_at.to_date).to_i
end

# Get the auto renewal status as given by Google
Expand Down

0 comments on commit 0f4fb83

Please sign in to comment.