This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Trends to csv
#8
Timestamps are in UTC which conversion to date string does not take into account.

Replace this:
Code:
date = os.date('%d/%m/%y %H:%M', row1[ 1 ])

With this:
Code:
date = os.date('!%d/%m/%y %H:%M', row1[ 1 ])

There's bug in CSV export in Trends UI where data is shifted by one step (15 minutes in your case).
Reply


Messages In This Thread
Trends to csv - by jobb@nordstrandsel.se - 06.10.2023, 08:44
RE: Trends to csv - by admin - 06.10.2023, 08:48
RE: Trends to csv - by jobb@nordstrandsel.se - 06.10.2023, 09:12
RE: Trends to csv - by admin - 06.10.2023, 09:23
RE: Trends to csv - by jobb@nordstrandsel.se - 06.10.2023, 16:08
RE: Trends to csv - by admin - 09.10.2023, 06:42
RE: Trends to csv - by jobb@nordstrandsel.se - 09.10.2023, 11:41
RE: Trends to csv - by admin - 09.10.2023, 11:48
RE: Trends to csv - by jobb@nordstrandsel.se - 10.10.2023, 12:55
RE: Trends to csv - by admin - 10.10.2023, 12:56

Forum Jump: