openmeteo / enhydris

A database with a web interface for the storage and management of hydro/meteorological measurements and time series
GNU Affero General Public License v3.0
18 stars 11 forks source link

AddUPI stores timestamp in the wrong time zone #477

Closed aptiko closed 1 year ago

aptiko commented 2 years ago

AddUPI apparently stores Europe/Athens timestamps as UTC, i.e. it stores 2022-09-10 16:00 EEST as 2009-09-10 13:00.

Meteoview2 apparently stores Europe/Athens time instead of converting to EET.

aptiko commented 2 years ago

It seems that data_time_zone is not being used anywhere. Therefore it is unsurprising that Meteoview stores Europe/Athens.

aptiko commented 2 years ago

The addUPI problem is completely different. It's because the gateway in question is an 850, its local time zone is set at UTC, and the request is made without a df parameter. See the addUPI reference page 12 for more information.

aptiko commented 1 year ago

I've made some progress but still needs work. My work so far is in the branch issue477-adcontz, in the aptiko fork. Read the commit messages for more information.

aptiko commented 1 year ago

This ticket will be only for AddUPI. I've moved the Meteoview2 problem, which is different, to #503.