Fix locale setting
Benjamin Renard

Benjamin Renard commited on 2015-01-07 10:05:19
Showing 1 changed files, with 3 additions and 2 deletions.

... ...
@@ -5,8 +5,9 @@ error_reporting(E_ERROR);
5 5
 @require_once "lib/api-allocine-helper/api-allocine-helper.php";
6 6
 require_once "functions.php";
7 7
 
8
-// Retreive local from environnement
9
-setlocale(LC_ALL, '');
8
+// Set locale to 'fr_FR.UTF-8' (required to retreive correct days short name)
9
+// CAUTION : If you want to modify it, you have to change day2int() function
10
+setlocale(LC_ALL, 'fr_FR.UTF-8');
10 11
 
11 12
 // Manage script parameters
12 13
 $options=getopt('hc:t:d:');
13 14