Use MooseX::Types::ISO8601 coercion behaviour without the coercion.
Dan Brook [Fri, 9 Mar 2012 22:23:01 +0000 (22:23 +0000)]
As of 0.09 the type constraints from MooseX::Types::ISO8601 are stricter (and
more correct AIUI) so we just use the coercion code without attempting a
coercion directly.

lib/Gitalist/Git/Types.pm

index ad934f6..7241cf8 100644 (file)
@@ -32,7 +32,7 @@ MooseX::Storage::Engine->add_custom_type_handler(
             Carp::confess("Not implemented");
         },
         collapse => sub {
-            to_ISO8601DateTimeStr(shift);
+            $_[0]->ymd('-') . 'T' . $_[0]->hms(':') . 'Z' 
         },
 );