code: def make_naive(dt):
      
      tt = dt.utctimetuple()
      ts = calendar.timegm(tt)
      local_tt = time.localtime(ts)
      return datetime.datetime(*local_tt[:6])
docs: Makes an aware datetime.datetime naive in local time zone.