def convert_to_utc(dt):
 if (not dt.tzinfo):
  return add_utc_tz(dt)
 dt = dt.astimezone(dateutil.tz.tzutc())
 return dt

def convert_to_utc ( dt ) : if ( not dt . tzinfo ) : return add_utc_tz ( dt ) dt = dt . astimezone ( dateutil . tz . tzutc ( ) ) return dt
convert provided datetime object to utc timezone .