set the default timezone, as WP always sets it to GMT (bastards)

This commit is contained in:
Vasil Kolev 2015-10-20 00:57:20 +03:00 committed by Openfest
parent 0e9a3ca5f7
commit efa9099804
1 changed files with 2 additions and 0 deletions

View File

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