-
Notifications
You must be signed in to change notification settings - Fork 78
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
Wrong timezone on csv export #2100
Comments
Whats the timezone of yout hostsystem? assumption: it is UTC and not "german summer time" ... fix there and files are fixed too |
No, timezone on the server is CEST and shows exactly the same time as the client. Influx has the behavior, when changing the time format with "precision rfc3339", all listed dates are shown in UTC. In a query it looks like the following Possibly the csv function at the history adapter doesn't consider this behavior? |
Also our influxdb adapter do not have this addition btw |
What I doesn't understand is, that the time in the history gui is ok, but not in the csv data. |
That CSV is generated by Admin ... normally the data coming from server are"just" numbers .. so it more seems to be an iadmin issue when? @foxriver76 could you please have a look in admin when it comes to this CSV generation? |
@joortwein BTW ... if the data is storedf in an influxdb then it is also not history adaoter but the influxdb adater ... |
is it maybe shown as
|
"is it maybe shown as 2023-08-29 18:00:00Z ?" Yes, it is! When the datestring is calculatet in the code, it should be a easy doing to consider the clients timezone on this calculation .... I hope |
Yes we can easily change this to the clients time zone. Do you see any downsides @Apollon77? |
or do a extra switch in the config to dicide to do the csv download with utc or client timezone. King size solution: provide a drop down field with all available time zones and pre selected client timezone |
"Downsides" is the potential breaking nature of the change for other users of the csv export. So the intersting question is now what people do with the CSV and which software tehy use that can not understand ISO timestamps :-) So @joortwein what you do with the CSV that do not support ISO timestamps? |
Using an option to select either local (=client) timezone or utc for export looks optimal. In addition I know the problem of utc vs local time zone from my previous job - whatever you select to use there are complains that for business goal xxx the other solution is required :-) But I do not know what effort would be to adapt the gui ... |
@Appolon77 Or, place a hint beneath the export button that the exported data is in utc and for the rest let the user stay alone to convert the data to his local time (not user friendly) |
I tend to go, to WYSIWYG or making configurable, but I am not sure if anyone needs the UTC export, so maybe we change to WYSIWYG and if someone complains, make it configurable, from my gut feeling this will save us work, because nobody needs the UTC version. |
... and the utc lovers are probably more the data jugglers and can convert the data to their heart's content they want. |
when i export data to csv, the timestamps are shown 2 hours lower than the ones in the gui.
for example the timestamp in the gui is "2023-08-29 20:00:00" but after export it es shown as "2023-08-29 18:00:00"
German timezone is my default. Seems the export routine converts to UTC.
This is very confusing during troubleshooting my datarows
History Adapter is v2.2.6
Data is stored in influxdb 1.8
The text was updated successfully, but these errors were encountered: