Fix warning for date