From 88441753d74d4be0535adcde63d343ae5e5a972c Mon Sep 17 00:00:00 2001 From: Dan Untenzu Date: Wed, 22 Feb 2017 16:45:06 +0100 Subject: [PATCH 1/1] [FEATURE] Set default timezone Set UTC as default timezone for all date/time functions. Dont rely on the servers timezone, since this timezone may change on cloud hosts or may nit be set at all. Using UTC is a best practice to avoid timezone issues etc. Refs #73 --- lib/settings.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/settings.php b/lib/settings.php index 2c3cb05..85c1245 100644 --- a/lib/settings.php +++ b/lib/settings.php @@ -66,3 +66,6 @@ define('JIRAFEAU_WEEK', 604800); // JIRAFEAU_DAY * 7 define('JIRAFEAU_MONTH', 2419200); // JIRAFEAU_WEEK * 4 define('JIRAFEAU_QUARTER', 7257600); // JIRAFEAU_MONTH * 3 define('JIRAFEAU_YEAR', 29030400); // JIRAFEAU_MONTH * 12 + +// set UTC as default timezone for all date/time functions +date_default_timezone_set ('UTC'); -- 2.34.1