aboutsummaryrefslogtreecommitdiffstats
path: root/en
diff options
context:
space:
mode:
Diffstat (limited to 'en')
-rw-r--r--en/about/reports/template.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/en/about/reports/template.php b/en/about/reports/template.php
index 2cd6e6aeb..31c596626 100644
--- a/en/about/reports/template.php
+++ b/en/about/reports/template.php
@@ -11,7 +11,7 @@ $_months = array(
7 => 'July', 8 => 'August', 9 => 'September',
10 => 'October', 11 => 'November', 12 => 'December'
);
-
+date_default_timezone_set(@date_default_timezone_get());
/**
* Format numbers after ISO_31 recommandation,
* using the comma as decimal sep.
@@ -24,7 +24,9 @@ $_months = array(
*/
function _report_number_format($n, $dec_sep = ',')
{
- return str_replace('#', ' ', number_format($n, 2, $dec_sep, '#'));
+ $n = str_replace(',', '.', $n);
+ $num = number_format($n, 2, $dec_sep, '#');
+ return str_replace('#', ' ', $num);
}
$data = file($source_csv);