From b540ac93856065ce6e145930b6611e0a0946d646 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sun, 8 Dec 2019 11:38:20 +0100 Subject: Add timezone to shifts JSON Resolves #689 (Provide time zone offset via the shifts-json-export API) --- includes/model/Shifts_model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/model/Shifts_model.php b/includes/model/Shifts_model.php index 01295fbc..1f957c84 100644 --- a/includes/model/Shifts_model.php +++ b/includes/model/Shifts_model.php @@ -635,6 +635,7 @@ function Shifts_by_user($userId, $include_freeload_comments = false) `ShiftEntry`.`Comment`, ' . ($include_freeload_comments ? '`ShiftEntry`.`freeload_comment`, ' : '') . ' `Shifts`.*, + @@session.time_zone AS timezone, `Room`.* FROM `ShiftEntry` JOIN `Shifts` ON (`ShiftEntry`.`SID` = `Shifts`.`SID`) -- cgit v1.2.3