fix: convert time to int before processing it