Fixed an issue with date parsing
This commit is contained in:
		
							parent
							
								
									5ce78fe940
								
							
						
					
					
						commit
						fc413fd7f6
					
				@ -32,6 +32,7 @@ module I18nHelper
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def date(date, format = :long)
 | 
			
		||||
    return '' unless date.present?
 | 
			
		||||
    I18n.l(date.is_a?(String) ? Date.parse(date) : date, format: format)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user