summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-12-08 11:38:20 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-12-08 11:38:20 +0100
commitb540ac93856065ce6e145930b6611e0a0946d646 (patch)
tree948552b36bd277138c090cd6aa889626f5548b01 /includes
parent72123fcd31b612e35e5967c01faae9dd202756d8 (diff)
Add timezone to shifts JSON
Resolves #689 (Provide time zone offset via the shifts-json-export API)
Diffstat (limited to 'includes')
-rw-r--r--includes/model/Shifts_model.php1
1 files changed, 1 insertions, 0 deletions
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`)