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

timezones do not work in InfluxDB 2 on Windows #23248

Open
alespour opened this issue Mar 31, 2022 · 5 comments
Open

timezones do not work in InfluxDB 2 on Windows #23248

alespour opened this issue Mar 31, 2022 · 5 comments
Labels
area/flux Issues related to the Flux query engine kind/bug os/windows

Comments

@alespour
Copy link
Contributor

Steps to reproduce:

  1. run Flux query with location, eg.
import "array"
import "timezone"

array.from(rows:[ 
    {_time: 2022-03-12T00:00:00Z, _value: 10},
    {_time: 2022-03-12T06:00:00Z, _value: 20},
    {_time: 2022-03-12T12:00:00Z, _value: 30},
    {_time: 2022-03-12T18:00:00Z, _value: 40}
])
  |> aggregateWindow(every: 1d, fn:mean, location: timezone.location(name: "America/Los_Angeles"))

Expected behavior:
Data are returned.

Actual behavior:
Error error calling function "location" @10:52-10:98: unknown time zone America/Los_Angeles occurs.

Environment info:

  • System info: Windows 7
  • InfluxDB version: InfluxDB 2.1.1 (git: 657e183) build_date: 2021-11-09T03:03:48Z

Workaround is to download zoneinfo.zip from Go repo and set ZONEINFO env var. Discussed at https://community.influxdata.com/t/error-while-defining-location-parameter-for-aggregatewindow/24433.

@mutigozel
Copy link

Thank you @alespour for putting this in the issues.

@KyrumX
Copy link

KyrumX commented Sep 12, 2022

Still an issue with InfluxDB 2.4.0

@jeffreyssmith2nd jeffreyssmith2nd added kind/bug os/windows area/flux Issues related to the Flux query engine labels Oct 21, 2022
@9000cats
Copy link

9000cats commented Aug 6, 2023

Still an issue with InfluxDB 2.7.1

@alirezameftahi71
Copy link

alirezameftahi71 commented Sep 5, 2023

Having the same problem w/ InfluxDB 2.7.1 and this is a critical issue. The none existent support is unacceptable.

@UltimateFighter
Copy link

Same in v2.7.6 with timezone "Europe/Berlin" :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/flux Issues related to the Flux query engine kind/bug os/windows
Projects
None yet
Development

No branches or pull requests

7 participants