Skip to content

Commit e009134

Browse files
authored
Merge pull request #607 from plausible/apiv2-timezone-issue
Update time-related documentation
2 parents ae51306 + 84e87f8 commit e009134

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

docs/stats-api.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,16 @@ It's useful to be able to group data by time, which can be done via the followin
184184

185185
| Dimension | Example | Description |
186186
| -- | -- | -- |
187-
| `time` | 2024-01-01 | Time or date to group by. Automatically figures out the appropriate time:bucket value from date range. Response is a valid ISO8601 date or timestamp |
188-
| `time:hour` | 2021-01-27T23:43:10Z | Time grouped by hour. ISO8601 timestamp |
189-
| `time:day` | 2021-01-27 | Time grouped by date. ISO8601 date |
190-
| `time:week` | 2021-01-04 | Time grouped by start of the week. ISO8601 date |
191-
| `time:month` | 2021-01-01 | Time grouped by start of month. ISO8601 date |
187+
| `time` | `2024-01-01` | Time or date to group by. Automatically figures out the appropriate time:bucket value from date range. Response is a valid ISO8601 date or timestamp |
188+
| `time:hour` | `2021-01-27 23:43:10` | Time grouped by hour. |
189+
| `time:day` | `2021-01-27` | Time grouped by date. ISO8601 date |
190+
| `time:week` | `2021-01-04` | Time grouped by start of the week. ISO8601 date |
191+
| `time:month` | `2021-01-01` | Time grouped by start of month. ISO8601 date |
192192

193193
Note that:
194194
- `time` dimensions are not usable in filters. Set [`date_range`](#date_range) instead.
195195
- If no data falls into a given time bucket, no values are returned. [See `include.time_labels` option](#time-labels) for a workaround.
196+
- These dates and timestamps are reported in sites Reporting Timezone.
196197

197198
[See example](#example-timeseries)
198199

0 commit comments

Comments
 (0)