Fixed problem with worng sensor_time stored in DB.