
    (ph                        % S r SSKJr  SSKrSSKJrJr  SSKJr  SSK	J
r
  \R                  " S5      r\R                  \R                  S	.rS
\S'   SS jrg)z
Timezone utility functions.
    )annotationsN)timezonetzinfo   )PGconn)ZoneInfopsycopg)Ns   UTCzdict[bytes | None, tzinfo]
_timezonesc           	        U (       a  U R                  S5      OSn [        U   $ ! [         a    U(       a  UR                  5       OSn [	        U5      nO! [        [
        4 a)    [        R                  SU5        [        R                  n OQ[         aE  n[        R                  SU[        U5      R                  U5        [        R                  n SnAOSnAff = fU[        U'   Us $ f = f)z=Return the Python timezone info of the connection's timezone.s   TimeZoneNUTCz-unknown PostgreSQL timezone: %r; will use UTCz>error handling PostgreSQL timezone: %r; will use UTC (%s - %s))parameter_statusr
   KeyErrordecoder   OSErrorloggerwarningr   utc	Exceptiontype__name__)pgconntznamesnameziexs        >/var/www/html/venv/lib/python3.13/site-packages/psycopg/_tz.py
get_tzinfor      s    5;V$$[1F&!! #)u	!%B'" 	NNJERB 	NNPR!!	 B	  
6	#sE   % #C,	AC,6CC,	C;CC,CC,+C,)r   zPGconn | Nonereturnr   )__doc__
__future__r   loggingdatetimer   r   pq.abcr   _compatr   	getLoggerr   r   r
   __annotations__r        r   <module>r)      sO    #  %  			9	% ,,LL*
& r(   