addresses #927, make date searches time zone aware

This commit is contained in:
albert
2013-03-17 20:26:00 -04:00
parent cfdf449bfc
commit 9210a72c4c
3 changed files with 8 additions and 4 deletions

View File

@@ -174,7 +174,7 @@ class Tag < ActiveRecord::Base
when :date
begin
object.to_date
Time.zone.parse(object)
rescue Exception
nil
end