Discussions

Ask a Question
Back to all

consider_tz_in_ranges does not seem to be working correctly

consider_tz_in_ranges
boolean
Defaults to true
When passing start[lte], start[gte], end[lte], or end[gte] parameters, consider the offset passed. Previously we ignored the offset and treated all datetimes as local location time

I am using this with the shifts endpoint.

params = {
    "limit": 100,
    "start[gte]": "2026-07-23T05:00:00Z",  # Clean ISO8601 formatting (removed milliseconds)
    "end[lte]": "2026-07-23T10:00:00Z",
    "deleted": "false",
    "include_deleted": "false",
    "draft": "false",
    "include_draft": "false",
    "consider_tz_in_ranges": "false"        # Respects the Z (UTC) offset explicitly
}

but it is still skipping a shift that starts at '2026-07-23T08:30:00Z'