<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -126,16 +126,13 @@ module Liquid
         return input.to_s
       end
       
-      date = case input
-      when String
-        Time.parse(input)
-      when Date, Time, DateTime
-        input
+      date = input.is_a?(String) ? Time.parse(input) : input
+      
+      if date.respond_to?(:strftime)
+        date.strftime(format.to_s)
       else
-        return input
+        input
       end
-              
-      date.strftime(format.to_s)
     rescue =&gt; e 
       input
     end</diff>
      <filename>lib/liquid/standardfilters.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7acdac2a1c771c92fb04fd208d11dae5aa7054dc</id>
    </parent>
  </parents>
  <author>
    <name>Zack Chandler</name>
    <email>zackchandler@depixelate.com</email>
  </author>
  <url>http://github.com/tobi/liquid/commit/24bf446b0e789865370bfe248c2cfe44602afd61</url>
  <id>24bf446b0e789865370bfe248c2cfe44602afd61</id>
  <committed-date>2008-09-05T11:16:24-07:00</committed-date>
  <authored-date>2008-09-05T11:16:24-07:00</authored-date>
  <message>Refactor date filter to accept &quot;Time types&quot; other than Date, Time, and DateTime.  For example, TzTime (http://github.com/rails/tztime/tree/master) is now supported.</message>
  <tree>d53048def67866e50e2efa5a978182866ec62407</tree>
  <committer>
    <name>Zack Chandler</name>
    <email>zackchandler@depixelate.com</email>
  </committer>
</commit>
