projects
/
catagits/Reaction.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
02e3a86
)
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
patch
|
blob
|
blame
|
history
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);
}
};