def get_timezone_name():
 tz_name = force_text(get_current_timezone_name(), errors='ignore')
 return tz_name.encode('ascii', 'ignore').decode('ascii').replace(' ', '_')

def get_timezone_name ( ) : tz_name = force_text ( get_current_timezone_name ( ) , errors = 'ignore' ) return tz_name . encode ( 'ascii' , 'ignore' ) . decode ( 'ascii' ) . replace ( ' ' , '_' )
this returns a cross-platform compatible timezone name suitable for embedding into cache-keys .