diff --git a/base.php b/base.php index c47c6f3..8b65246 100644 --- a/base.php +++ b/base.php @@ -7,6 +7,7 @@ */ define ("VERSION", "0.1.0"); +date_default_timezone_set($config['default_timezone']); function getURLParam ($name, $default = NULL) { if (!empty ($_GET) && isset($_GET[$name])) { diff --git a/config_default.php b/config_default.php index d0fb5a5..5c1fa33 100644 --- a/config_default.php +++ b/config_default.php @@ -66,4 +66,11 @@ * 0 : disable */ $config['cops_show_icons'] = "1"; + + /* + * Default timezone + * Check following link for other timezones : + * http://www.php.net/manual/en/timezones.php + */ + $config['default_timezone'] = "Europe/Paris"; ?> \ No newline at end of file