From 984f1b2a417eb9a63a424a4a2781a1d401c0d3ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sat, 23 Jun 2012 14:50:50 +0200 Subject: [PATCH] Add a default timezone (reported by gaspine) --- base.php | 1 + config_default.php | 7 +++++++ 2 files changed, 8 insertions(+) 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