Check for `to_time`
This commit is contained in:
		
							parent
							
								
									f7edcceb70
								
							
						
					
					
						commit
						72a56d9eb7
					
				|  | @ -348,7 +348,7 @@ module Jekyll | ||||||
|     private |     private | ||||||
|     def time(input) |     def time(input) | ||||||
|       date = Liquid::Utils.to_date(input) |       date = Liquid::Utils.to_date(input) | ||||||
|       unless date.respond_to?(:strftime) |       unless date.respond_to?(:to_time) | ||||||
|         raise Errors::InvalidDateError, |         raise Errors::InvalidDateError, | ||||||
|           "Invalid Date: '#{input.inspect}' is not a valid datetime." |           "Invalid Date: '#{input.inspect}' is not a valid datetime." | ||||||
|       end |       end | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue