#NEWLINE# def parse_datetime_with_timezone_support( value ) : #NEWLINE# #INDENT# dt = parse_datetime ( value ) #NEWLINE# if ( ( dt is not None ) and settings . USE_TZ and timezone . is_naive ( value ) ) : #NEWLINE# #INDENT# dt = dt . replace ( tzinfo = timezone . utc ) #NEWLINE# #UNINDENT# return dt