o
    ÌÉh  ã                   @   s(   d dl Z d dlmZ dd„ Zdd„ ZdS )é    N)Útimezonec                 C   s$   t  | ¡rt  | ¡ d¡S |  d¡S )a¢  
    Helper function to translate a possibly-timezone-aware datetime into the format used in the
    go_live_at / expire_at form fields - "YYYY-MM-DD hh:mm", with no timezone indicator.
    This will be interpreted as being in the server's timezone (settings.TIME_ZONE), so we
    need to pass it through timezone.localtime to ensure that the client and server are in
    agreement about what the timestamp means.
    z%Y-%m-%d %H:%M)r   Úis_awareÚ	localtimeÚstrftime)Ú	timestamp© r   ú]/var/www/html/ndineBlogger/venv/lib/python3.10/site-packages/wagtail/test/utils/timestamps.pyÚsubmittable_timestamp   s   

r	   c                  G   s   t j | Ž }t |¡S )N)Údatetimer   Ú
make_aware)ÚargsÚdtr   r   r   Úlocal_datetime   s   

r   )r
   Údjango.utilsr   r	   r   r   r   r   r   Ú<module>   s    