diff options
author | Struan Donald <struan@exo.org.uk> | 2013-01-28 16:52:33 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-01-28 16:52:33 +0000 |
commit | a169364fc24fff6db1dd53cc90da8af4f3549250 (patch) | |
tree | c7c7716f2331c85c2359e3b61efaa46094d7a835 | |
parent | 099f4e37fe8ef2f1ef229a2ff4b06cde1184e8cd (diff) |
add displable represenations of confirmed and created times to ajax problem details
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index 0fd5379f8..f43e31173 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -761,6 +761,8 @@ sub as_hashref { is_fixed => $self->fixed_states->{ $self->state } ? 1 : 0, photo => $self->get_photo_params, meta => $self->confirmed ? $self->meta_line( $c ) : '', + confirmed_pp => $self->confirmed ? Utils::prettify_dt( $self->confirmed_local, 1 ): '', + created_pp => Utils::prettify_dt( $self->created_local, 1 ), }; } |