setting value for Field::Mutable::DateTime in order to get an error message
edenc [Wed, 28 May 2008 11:46:31 +0000 (11:46 +0000)]
lib/Reaction/UI/ViewPort/Field/Mutable/DateTime.pm

index 3b38d26..654f0d8 100644 (file)
@@ -17,7 +17,7 @@ class 'Reaction::UI::ViewPort::Field::Mutable::DateTime',
       my $dt = 'DateTime'->from_epoch( epoch => $epoch );
       $self->value($dt);
     } else {
-      $self->message("Could not parse date or time");
+      $self->value($self->value_string);
     }
   };