aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-12-20 09:43:29 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-12-20 09:43:29 +0000
commit0177ac9e5ed3752f8dc1f466777fe9aac10026d5 (patch)
tree1ffaeb4d2b294feb0b519438ab9b6d699024fba0
parentb79674b0145fc2c4cb57ed77ceec39246d02621c (diff)
Set DateTime locale for Zurich manually.
-rw-r--r--perllib/FixMyStreet/App.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index fde1fb931..4dea23a41 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -3,6 +3,7 @@ use Moose;
use namespace::autoclean;
use Catalyst::Runtime 5.80;
+use DateTime;
use FixMyStreet;
use FixMyStreet::Cobrand;
use Memcached;
@@ -188,8 +189,10 @@ sub setup_request {
mySociety::MaPit::configure( "http://$host/fakemapit/" );
}
+ # XXX Put in cobrand / do properly
if ($c->cobrand->moniker eq 'zurich') {
FixMyStreet::DB::Result::Problem->visible_states_add_unconfirmed();
+ DateTime->DefaultLocale( 'de_CH' );
}
return $c;