oncall-engine/engine/apps
Matias Bordese 0ab5312bf1
Use X-WR-TIMEZONE as calendar tz when available, fallback to UTC (#2091)
When checking current shifts to trigger slack notifications, a stable
value for timezone should be used (to avoid triggering multiple
duplicated notifications; using the first `VTIMEZONE` value available
may change on refresh, besides being potentially incorrect).

Also, `VTIMEZONE` shouldn't be used as the calendar timezone, it just
describes a [timezone
definition](https://icalendar.org/iCalendar-RFC-5545/3-6-5-time-zone-component.html)
which can later be [used when specifying a start/end
date/datetime](https://icalendar.org/iCalendar-RFC-5545/3-2-19-time-zone-identifier.html)
("The parameter MUST be specified on properties with a DATE-TIME value
if the DATE-TIME is not either a UTC or a "floating" time.").

OTOH, Google uses the non-standard[ `X-WR-TIMEZONE`
](https://github.com/collective/icalendar/issues/343)field as fallback
TZ for date-times without a `TZID`. Try to use this when available,
otherwise fallback to `UTC`.
2023-06-02 17:28:04 +00:00
..
alerts Use X-WR-TIMEZONE as calendar tz when available, fallback to UTC (#2091) 2023-06-02 17:28:04 +00:00
api Fix demo alert for inbound email (#2081) 2023-06-02 09:44:32 +00:00
api_for_grafana_incident Include alert details in Grafana Incident alert-group endpoint (#1280) 2023-02-03 13:43:21 +00:00
auth_token Improve plugin authentication (#1995) 2023-05-23 16:13:25 +00:00
base Map country code to different Twilio resources (#1976) 2023-05-25 21:56:44 +00:00
email Change email message on_delete to not block organization delete (#2060) 2023-05-31 13:44:55 +00:00
grafana_plugin Improve plugin authentication (#1995) 2023-05-23 16:13:25 +00:00
heartbeat Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
integrations Add ratelimit for AmazonSNS (#2032) 2023-05-26 09:57:26 +00:00
metrics_exporter OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
mobile_app changed notification title and subtitle; removed body (#2027) 2023-05-26 12:52:09 +00:00
oss_installation Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
phone_notifications Fix status callbacks (#2014) 2023-05-25 13:53:58 +08:00
public_api Phone provider refactoring (#1713) 2023-05-24 06:27:48 +00:00
schedules Use X-WR-TIMEZONE as calendar tz when available, fallback to UTC (#2091) 2023-06-02 17:28:04 +00:00
slack Fix orphaned messages in Slack (#2023) 2023-06-01 10:21:30 +00:00
social_auth Social auth exception logging (#2041) 2023-06-02 11:20:54 +00:00
telegram Fix SQLite permission issue (#1984) 2023-05-22 19:16:31 +00:00
twilioapp Use same account for status callback when using TwilioSender (#2083) 2023-06-02 17:19:36 +00:00
user_management OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
webhooks Webhook response check content length instead of header for length limit (#1900) 2023-05-09 13:55:05 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00