mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[2.2.x] Fixed datetime string format examples in docs/howto/custom-template-tags.txt.
Backport of f011d9ea56 from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							83605a17f0
						
					
				
				
					commit
					a7515c3532
				
			| @@ -1014,7 +1014,7 @@ Here's how you'd use this new version of the tag: | ||||
|  | ||||
| .. code-block:: html+django | ||||
|  | ||||
|     {% current_time "%Y-%M-%d %I:%M %p" %}<p>The time is {{ current_time }}.</p> | ||||
|     {% current_time "%Y-%m-%d %I:%M %p" %}<p>The time is {{ current_time }}.</p> | ||||
|  | ||||
| .. admonition:: Variable scope in context | ||||
|  | ||||
| @@ -1032,7 +1032,7 @@ like so: | ||||
|  | ||||
| .. code-block:: html+django | ||||
|  | ||||
|     {% current_time "%Y-%M-%d %I:%M %p" as my_current_time %} | ||||
|     {% current_time "%Y-%m-%d %I:%M %p" as my_current_time %} | ||||
|     <p>The current time is {{ my_current_time }}.</p> | ||||
|  | ||||
| To do that, you'll need to refactor both the compilation function and ``Node`` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user