title: Date giving wrong year on Device
body: <p>I have no idea what is going on. I am using XCode 8.2.1.</p>
  
  <p>I have method that returns String of current date.</p>
  
  <pre><code>    static func getCurrentDate() -&gt; String {
  
      let date = Date()
  
      let dateFormatter = DateFormatter()
      dateFormatter.dateFormat = "dd.MM.YYYY"
      let dateString = dateFormatter.string(from: date)
  
      return dateString
  }
  </code></pre>
  
  <p>Now everything look ok, and it is ok, when I run my application in Simulator. But, when I run app on my device I get weird results. This started happening few days ago and I have no idea what is going on.</p>
  
  <p>The output in console is:</p>
  
  <pre><code>dateString  String  "29.12.2017"    
  date    Date    2016-12-29 09:38:45 UTC 
  </code></pre>
  
  <p>You can notice that dateString has year <strong>2017</strong> instead of <strong>2016</strong>.</p>
  
  <p>Any idea what is going on?</p>