influxdata / influxdata/influxdb
interpolate.linear ignores timezones
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
> 2023-03-25 01:00:00
7104
2023-03-26 00:00:00
7109
2023-03-26 01:00:00
7109
2023-03-27 02:00:00
7114
2023-03-28 02:00:00
7120
2023-03-29 02:00:00
7125
2023-03-30 02:00:00
7130
2023-03-31 02:00:00
7135
2023-04-01 02:00:00
7140
2023-04-02 00:00:00
7145
My data comes in on a weekly basis. See entries at 00:00
When using "interpolate.linear(every: 1d)" to get the missing values the function will use UTC time.
For the days I already have data it will add a second entry. And all these timestamps are 1:00 or 2:00 (summertime).
Is there a way interpolate.linear can use 0:00 at the given timezone instead of using 0:00 UTC ?
Contributor guide
Research direction
Start by locating the interpolate.linear implementation and its handling of timestamps and timezones. Reproduce the supplied data across the daylight-saving transition, then verify that daily interpolation uses 00:00 in the given timezone without adding duplicate entries for existing points.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100