Add timezone to shifts JSON

Resolves #689 (Provide time zone offset via the shifts-json-export API)
This commit is contained in:
Igor Scheller 2019-12-08 11:38:20 +01:00
parent 72123fcd31
commit b540ac9385
1 changed files with 1 additions and 0 deletions

View File

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