Skip to content

Commit

Permalink
Address jekyll#3298
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanburnette committed Jan 13, 2015
1 parent e13c800 commit 936c737
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/jekyll/filters.rb
Expand Up @@ -302,6 +302,8 @@ def time(input)
case input
when Time
input
when Date
input.to_time
when String
Time.parse(input) rescue Time.at(input.to_i)
when Numeric
Expand Down

0 comments on commit 936c737

Please sign in to comment.