Fix time-conversion from ms to s on 32-bit systems
Wrong timestamps (always y2038) are generated on systems with 32-bit integer and timestamps with 1 ms resolution (OsmAnd). To avoid this problem the conversion is done with float values and converted to int after that.