time parsing fix