projects
/
catagits/Reaction.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
setting value for Field::Mutable::DateTime in order to get an error message
[catagits/Reaction.git]
/
lib
/
Reaction
/
UI
/
ViewPort
/
Field
/
Mutable
/
DateTime.pm
diff --git
a/lib/Reaction/UI/ViewPort/Field/Mutable/DateTime.pm
b/lib/Reaction/UI/ViewPort/Field/Mutable/DateTime.pm
index
3b38d26
..
654f0d8
100644
(file)
--- a/
lib/Reaction/UI/ViewPort/Field/Mutable/DateTime.pm
+++ b/
lib/Reaction/UI/ViewPort/Field/Mutable/DateTime.pm
@@
-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);
}
};