From: Dan Untenzu <untenzu@webit.de>
Date: Wed, 22 Feb 2017 15:45:06 +0000 (+0100)
Subject: [FEATURE] Set default timezone
X-Git-Tag: 3.0.0~9
X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/88441753d74d4be0535adcde63d343ae5e5a972c?hp=cd09b476cbbfa8f90f0f86e67da5414d21c8ad10

[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
---

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');