+

Fix locale setting

Benjamin Renard [2015-01-07 10:05:19]
Fix locale setting
Filename
send.php
diff --git a/send.php b/send.php
index 122a82e..f2b419e 100644
--- a/send.php
+++ b/send.php
@@ -5,8 +5,9 @@ error_reporting(E_ERROR);
 @require_once "lib/api-allocine-helper/api-allocine-helper.php";
 require_once "functions.php";

-// Retreive local from environnement
-setlocale(LC_ALL, '');
+// Set locale to 'fr_FR.UTF-8' (required to retreive correct days short name)
+// CAUTION : If you want to modify it, you have to change day2int() function
+setlocale(LC_ALL, 'fr_FR.UTF-8');

 // Manage script parameters
 $options=getopt('hc:t:d:');
ViewGit