diff options
author | edenc <edenc@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-05-28 11:46:31 +0000 |
---|---|---|
committer | edenc <edenc@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-05-28 11:46:31 +0000 |
commit | ae3f3fcc9b8807da0b382a20e7b6612bd9f49c00 (patch) | |
tree | 12814fecb8adad924059636fbbdc0ebb102ac898 | |
parent | 02e3a86cb7bd4a7b91e976f84dc5424cb8d188db (diff) | |
download | reaction-ae3f3fcc9b8807da0b382a20e7b6612bd9f49c00.tar.gz reaction-ae3f3fcc9b8807da0b382a20e7b6612bd9f49c00.zip |
setting value for Field::Mutable::DateTime in order to get an error message
-rw-r--r-- | lib/Reaction/UI/ViewPort/Field/Mutable/DateTime.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Reaction/UI/ViewPort/Field/Mutable/DateTime.pm b/lib/Reaction/UI/ViewPort/Field/Mutable/DateTime.pm index 3b38d26..654f0d8 100644 --- 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); } }; |