mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Elasticsearch: revert to isoWeek when resolving weekly indices (#31709)
* Elasticsearch: revert to isoWeek when resolving weekly indices * Add type assertion explainer
This commit is contained in:
@@ -12,7 +12,7 @@ type IntervalMap = Record<
|
||||
const intervalMap: IntervalMap = {
|
||||
Hourly: { startOf: 'hour', amount: 'hours' },
|
||||
Daily: { startOf: 'day', amount: 'days' },
|
||||
Weekly: { startOf: 'week', amount: 'weeks' },
|
||||
Weekly: { startOf: 'isoWeek', amount: 'weeks' },
|
||||
Monthly: { startOf: 'month', amount: 'months' },
|
||||
Yearly: { startOf: 'year', amount: 'years' },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user