#NEWLINE# def get_tz( self , request ) : #NEWLINE# #INDENT# tz = get_tz_from_request ( request ) #NEWLINE# if tz : #NEWLINE# #INDENT# return tz #NEWLINE# #UNINDENT# accept_lang = request . META . get ( 'HTTP_ACCEPT_LANGUAGE' , '' ) #NEWLINE# langs = trans_real . parse_accept_lang_header ( accept_lang ) #NEWLINE# for ( lang , unused ) in langs : #NEWLINE# #INDENT# tz = guess_tz_from_lang ( lang ) #NEWLINE# if tz : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# return tz