setting value for Field::Mutable::DateTime in order to get an error message
[catagits/Reaction.git] / 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);
     }
   };