def s3_get_utc_offset():
 offset = None
 session = current.session
 request = current.request
 logged_in = current.auth.is_logged_in()
 if logged_in:
  offset = session.auth.user.utc_offset
  if offset:
   offset = offset.strip()
 if (not offset):
  offset = request.post_vars.get('_utc_offset', None)
  if offset:
   offset = int(offset)
   utcstr = (((offset < 0) and '+') or '-')
   hours = abs(int((offset / 60)))
   minutes = abs(int((offset % 60)))
   offset = ('%s%02d%02d' % (utcstr, hours, minutes))
   if logged_in:
    session.auth.user.utc_offset = offset
 if (not offset):
  offset = current.deployment_settings.L10n.utc_offset
 session.s3.utc_offset = offset
 return offset

def s3_get_utc_offset ( ) : offset = None session = current . session request = current . request logged_in = current . auth . is_logged_in ( ) if logged_in : offset = session . auth . user . utc_offset if offset : offset = offset . strip ( ) if ( not offset ) : offset = request . post_vars . get ( '_utc_offset' , None ) if offset : offset = int ( offset ) utcstr = ( ( ( offset < 0 ) and '+' ) or '-' ) hours = abs ( int ( ( offset / 60 ) ) ) minutes = abs ( int ( ( offset % 60 ) ) ) offset = ( '%s%02d%02d' % ( utcstr , hours , minutes ) ) if logged_in : session . auth . user . utc_offset = offset if ( not offset ) : offset = current . deployment_settings . L10n . utc_offset session . s3 . utc_offset = offset return offset
get the current utc offset for the client .