mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	Refs #28965 -- Removed utils.http.cookie_date() per deprecation timeline.
This commit is contained in:
		
							parent
							
								
									6f23996a59
								
							
						
					
					
						commit
						958a7b4ca6
					
				
					 4 changed files with 6 additions and 45 deletions
				
			
		| 
						 | 
				
			
			@ -700,20 +700,6 @@ escaping HTML.
 | 
			
		|||
    A version of Python's :func:`urllib.parse.urlencode` function that can
 | 
			
		||||
    operate on ``MultiValueDict`` and non-string values.
 | 
			
		||||
 | 
			
		||||
.. function:: cookie_date(epoch_seconds=None)
 | 
			
		||||
 | 
			
		||||
    .. deprecated:: 2.1
 | 
			
		||||
 | 
			
		||||
        Use :func:`http_date` instead, which follows the latest RFC.
 | 
			
		||||
 | 
			
		||||
    Formats the time to ensure compatibility with Netscape's cookie standard.
 | 
			
		||||
 | 
			
		||||
    Accepts a floating point number expressed in seconds since the epoch in
 | 
			
		||||
    UTC--such as that outputted by ``time.time()``. If set to ``None``,
 | 
			
		||||
    defaults to the current time.
 | 
			
		||||
 | 
			
		||||
    Outputs a string in the format ``Wdy, DD-Mon-YYYY HH:MM:SS GMT``.
 | 
			
		||||
 | 
			
		||||
.. function:: http_date(epoch_seconds=None)
 | 
			
		||||
 | 
			
		||||
    Formats the time to match the :rfc:`1123` date format as specified by HTTP
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -254,3 +254,5 @@ See :ref:`deprecated-features-2.1` for details on these changes, including how
 | 
			
		|||
to remove usage of these features.
 | 
			
		||||
 | 
			
		||||
* The ``ForceRHR`` GIS function is removed.
 | 
			
		||||
 | 
			
		||||
* ``django.utils.http.cookie_date()`` is removed.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue