mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-02 14:11:46 +01:00
fix small error where Time was compared to Date
This commit is contained in:
parent
c113a0f800
commit
874576f315
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ class ApplicationController < ActionController::Base
|
|||
if show_from_date.nil?
|
||||
todo.show_from=nil
|
||||
else
|
||||
todo.show_from = show_from_date < Time.now.utc ? nil : show_from_date
|
||||
todo.show_from = show_from_date.to_time < Time.now.utc ? nil : show_from_date
|
||||
end
|
||||
|
||||
saved = todo.save
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue