Add timezone to shifts JSON
Resolves #689 (Provide time zone offset via the shifts-json-export API)
This commit is contained in:
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…
Reference in New Issue