Fix #2355 (date parsing with dashes)
This commit is contained in:
		@@ -756,9 +756,9 @@ def unified_strdate(date_str):
 | 
			
		||||
    """Return a string with the date in the format YYYYMMDD"""
 | 
			
		||||
    upload_date = None
 | 
			
		||||
    #Replace commas
 | 
			
		||||
    date_str = date_str.replace(',',' ')
 | 
			
		||||
    date_str = date_str.replace(',', ' ')
 | 
			
		||||
    # %z (UTC offset) is only supported in python>=3.2
 | 
			
		||||
    date_str = re.sub(r' ?(\+|-)[0-9:]*$', '', date_str)
 | 
			
		||||
    date_str = re.sub(r' ?(\+|-)[0-9]{2}:?[0-9]{2}$', '', date_str)
 | 
			
		||||
    format_expressions = [
 | 
			
		||||
        '%d %B %Y',
 | 
			
		||||
        '%B %d %Y',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user