open-meteo / open-meteo-api-kotlin

A Kotlin library for the Open-Meteo.com APIs.
MIT License
24 stars 2 forks source link

decodeLong is not precise #1

Closed DadiBit closed 2 years ago

DadiBit commented 2 years ago

When de-serializing a Unix timestamp (e.g.: in the Historical API), the times are 1 or 2 seconds wrong: HistoricalEndpointTest Testing the deserializing function itself, one can see that it's not a problem related to the Time class, but rather to decodeLong.

This happens both with String and InputStream as sources.