title: Date keeps going back to UTC versus staying formatted in the locale it is in
body: <p>I have converted a date/time from UTC to the proper locale timezone, however when I go to create the notification it keeps reverting to the UTC time.</p>
  <p>Here is my latest attempt to fix this but it isn't fixing the issue:</p>
  <pre><code>let gregorian = Calendar(identifier: .gregorian)
        var components = gregorian.dateComponents([.year, .month, .day, .hour, .minute, .second], from: newDate!)
             print(components)
  
        // Change the time to locale
        formatter.dateFormat = &quot;HH:mm&quot;
        formatter.timeZone = NSTimeZone.local
        let date = gregorian.date(from: components)!
  </code></pre>
  <p>If I check the value of date, the time is back to UTC +0000</p>
  <p>Here is the remainder of the code:</p>
  <pre><code>      let triggerDaily = Calendar.current.dateComponents([.hour, .minute, .second,], from: date)
        print(triggerDaily)
        let trigger = UNCalendarNotificationTrigger(dateMatching: triggerDaily, repeats: true)
  </code></pre>
  <p>Any help fixing this would be greatly appreciated.</p>
  <p>[Update]
  After reading the below comments I made the following change:</p>
  <pre><code>         formatter.dateFormat = &quot;HH:mm&quot;
           formatter.timeZone = NSTimeZone.local
           let myDate = formatter.string(from: date)
  
           let newDate = formatter.date(from: myDate)
  </code></pre>
  <p>It is now working as I expected it to.</p>