title: Date value chang when importing from CSV
body: <p>I have data in a csv like that :</p>
  
  <pre><code>"id","timeZone","date"
  "XE1DjjAru01tz8H7qhBluQ","America/Toronto","2014-02-12 16:29"
  </code></pre>
  
  <p>I have a class that look like this : </p>
  
  <pre><code>class MyClass {
  
      public $ID;
      public $Date;
  }
  </code></pre>
  
  <p>For a reason that I don't understand, the date is not the same when I set the Date attribute of the myClass object. During the loop, the value of the variable $value = 2014-02-12 16:29 but when I set the Date attribute of the class myClass, it's equal to : 2014-02-12 16:02. Someone have an explanation about this please ?</p>
  
  <pre><code>while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
  
      $num = count($data);
  
      if ($row === 1) {
  
          $fields = $data;
          $row++;
      } else {
  
          $row++;
  
          $myClass = new MyClass();   
  
          for ($c = 0; $c &lt; $num; $c++) {
  
              $value = $data[$c];      
              $myClass-&gt;Date = $value;
          }
      }
  }
  </code></pre>
  
  <p>Thank you !</p>