Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/report offsets in local time #744

Merged
merged 8 commits into from Jun 23, 2023
Merged

Conversation

Flix6x
Copy link
Contributor

@Flix6x Flix6x commented Jun 21, 2023

I propose switching to interpreting the report offsets in the sensor's timezone. The default of the timezone option was broken anyway, with the server timezone always being overwritten by the default="UTC" specified in the click option.

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x added bug Something isn't working CLI labels Jun 21, 2023
@Flix6x Flix6x added this to the 0.14.1 milestone Jun 21, 2023
@Flix6x Flix6x self-assigned this Jun 21, 2023
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x marked this pull request as ready for review June 21, 2023 14:09
Copy link
Contributor

@victorgarcia98 victorgarcia98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
@Flix6x Flix6x merged commit 97ed1a2 into main Jun 23, 2023
4 checks passed
@Flix6x Flix6x deleted the fix/report-offsets-in-local-time branch June 23, 2023 10:33
Flix6x added a commit that referenced this pull request Jun 26, 2023
Switch to interpreting the report offsets in the sensor's timezone.

* fix: do not overwrite default timezone with UTC

Signed-off-by: F.N. Claessen <felix@seita.nl>

* refactor: modernize type annotations

Signed-off-by: F.N. Claessen <felix@seita.nl>

* fix: default timezone is the sensor timezone where we save the report

Signed-off-by: F.N. Claessen <felix@seita.nl>

* refactor: flake8 helped me see this

Signed-off-by: F.N. Claessen <felix@seita.nl>

* docs: changelog entry

Signed-off-by: F.N. Claessen <felix@seita.nl>

* docs: CLI changelog entry

Signed-off-by: F.N. Claessen <felix@seita.nl>

---------

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants