Add timezone to shifts JSON

Resolves #689 (Provide time zone offset via the shifts-json-export API)
main
Igor Scheller 5 years ago
parent 72123fcd31
commit b540ac9385

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

Loading…
Cancel
Save