Merge pull request #499 from kreynolds/to_date_downcase_regression

Fix case sensitivity regression in date standard filter
This commit is contained in:
Justin Li
2015-03-25 01:22:04 -04:00
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -306,6 +306,8 @@ module Liquid
def to_date(obj)
return obj if obj.respond_to?(:strftime)
obj = obj.downcase if obj.is_a?(String)
case obj
when 'now'.freeze, 'today'.freeze
Time.now