influxdata / influxdata/influxdb

hourSelection() selects UTC when i'm in GMT-3

Open
#22,611 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

__Steps to reproduce:__
List the minimal actions needed to reproduce the behavior.

1. Save data in any timezone other than UTC
2. Use the function hourSelection()

__Expected behavior:__
To be able to select hours range inside a period of days (30d in my case)

__Actual behavior:__
I'm in GMT-3, it selected 3 hours prior my specified time.

__Environment info:__

* System info: Linux 5.4.0-80-generic x86_64
* InfluxDB version: InfluxDB 2.0.3 (git: fe04d346df) build_date: 2020-12-15T01:00:16Z

![image](https://user-images.githubusercontent.com/31015675/135852207-ad7c2b35-e55b-4478-9e70-c69b3c23edf4.png)

Contributor guide

Open the contributing guide

Research direction

Use hourSelection() as the entry point and reproduce the report with data saved in GMT-3 on InfluxDB 2.0.3, comparing the requested range with the selected range. Trace the timezone handling and verify that a 30-day hour range preserves the specified local time rather than shifting it by three hours.

Written by the indexing model from the issue text.

Assessment

Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.