def get_default_timezone():
 global _localtime
 if (_localtime is None):
  if (isinstance(settings.TIME_ZONE, six.string_types) and (pytz is not None)):
   _localtime = pytz.timezone(settings.TIME_ZONE)
  else:
   _localtime = LocalTimezone()
 return _localtime

def get_default_timezone ( ) : global _localtime if ( _localtime is None ) : if ( isinstance ( settings . TIME_ZONE , six . string_types ) and ( pytz is not None ) ) : _localtime = pytz . timezone ( settings . TIME_ZONE ) else : _localtime = LocalTimezone ( ) return _localtime
returns the default time zone as a tzinfo instance .