aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-reports
diff options
context:
space:
mode:
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-xbin/send-reports8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/send-reports b/bin/send-reports
index 6254337c6..2d5245269 100755
--- a/bin/send-reports
+++ b/bin/send-reports
@@ -104,9 +104,11 @@ foreach my $row (@$unsent) {
if ( mySociety::Config::get('COUNTRY') eq 'GB' ) {
( $h{easting}, $h{northing} ) =
- mySociety::GeoUtil::wgs84_to_national_grid( #
- $h{latitude}, $h{longitude}, 'G'
- );
+ mySociety::Locale::in_gb_locale {
+ mySociety::GeoUtil::wgs84_to_national_grid(
+ $h{latitude}, $h{longitude}, 'G'
+ );
+ };
# email templates don't have conditionals so we need to farmat this here
$h{easting_northing} #