fixed possible time conversion