From efa90998041cdeb9a0e514b1d3de9370ca6901fc Mon Sep 17 00:00:00 2001 From: Vasil Kolev Date: Tue, 20 Oct 2015 00:57:20 +0300 Subject: [PATCH] set the default timezone, as WP always sets it to GMT (bastards) --- schedule/parse.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/schedule/parse.php b/schedule/parse.php index 33106e7..a314ac1 100644 --- a/schedule/parse.php +++ b/schedule/parse.php @@ -21,6 +21,8 @@ $hall_ids = array_keys($data['halls']); $first_hall_id = min($hall_ids); $last_hall_id = max($hall_ids); +date_default_timezone_set('Europe/Sofia'); + foreach ($data['slots'] as $slot_id => $slot) { $slotTime = $slot['starts_at']; $slotDate = date('d', $slotTime);