aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-02-05 10:14:27 +0000
committerStruan Donald <struan@exo.org.uk>2013-02-05 10:14:27 +0000
commit33c7cab5e21eaa0f4aeb353f2e85768443aabe13 (patch)
tree0c2342b7ce9b25594ab8216da0810aa6a9b3f2dd
parentf31b397c334895b73a40c30594025068e31561f5 (diff)
use cobrand prettify_dt method rather calling directly so it gets called with correct params
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index 5bde902d4..ad23446fb 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -832,8 +832,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 ),
+ confirmed_pp => $self->confirmed ? $c->cobrand->prettify_dt( $self->confirmed_local ): '',
+ created_pp => $c->cobrand->prettify_dt( $self->created_local ),
};
}