Fix timedelta 1 roku
This commit is contained in:
		
							parent
							
								
									8e17ad9f46
								
							
						
					
					
						commit
						7b4366fdaf
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -21,7 +21,7 @@ def kratke_datum(dt): | |||
| 	delta = now - dt | ||||
| 	if delta <= timedelta(days=1): | ||||
| 		return dt.strftime("%k:%M") | ||||
| 	if delta <= timedelta(years=1): | ||||
| 	if delta <= timedelta(days=365):	# Timedelta neumí vyjádřit 1 rok | ||||
| 		return dt.strftime("%d. %m.") | ||||
| 	return dt.strftime("%d. %m. %Y") | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Pavel "LEdoian" Turinsky
						Pavel "LEdoian" Turinsky