add 0 = Sunday to day format

Signed-off-by: Kerry Archibald <kerrya@element.io>
pull/4141/head
Kerry Archibald 2 years ago committed by hanadi92
parent 498d7bda9d
commit 96c969159c

@ -24,7 +24,7 @@ to filter based on time of day and day of week.
| key | type | value | description | Required |
| ---- | ----| ----- | ----------- | -------- |
| `time_of_day` | string[] | tuple of `hh:mm` time | Tuple representing start and end of a time interval in which the rule should match. Times are [ISO 8601 formatted times](https://en.wikipedia.org/wiki/ISO_8601#:~:text=As%20of%20ISO%208601%2D1,minute%20between%2000%20and%2059.). Times are inclusive | Optional. When omitted all times are matched. |
| `day_of_week` | number[] | array of integers 1-7 | An array of integers representing days of the week on which the rule should match, where 1 = Monday, 7 = Sunday | **Required** |
| `day_of_week` | number[] | array of integers 0-7 | An array of integers representing days of the week on which the rule should match, where 0 = Sunday, 1 = Monday, 7 = Sunday | **Required** |
- `time_of_day` condition is met when the server's timezone-adjusted time is between the values of the tuple, or when no

Loading…
Cancel
Save