set the default timezone, as WP always sets it to GMT (bastards)
This commit is contained in:
parent
0e9a3ca5f7
commit
efa9099804
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue