@core_helper
def get_display_timezone():
 timezone_name = (config.get('ckan.display_timezone') or 'utc')
 if (timezone_name == 'server'):
  return tzlocal.get_localzone()
 return pytz.timezone(timezone_name)

@ core_helper def get_display_timezone ( ) : timezone_name = ( config . get ( 'ckan.display_timezone' ) or 'utc' ) if ( timezone_name == 'server' ) : return tzlocal . get_localzone ( ) return pytz . timezone ( timezone_name )
returns a pytz timezone for the display_timezone setting in the configuration file or utc if not specified .