title: MongoDB: Date issue when before 1970
body: <p>We are using MongoDB 2.4.9 (64 bits) over Windows 7 SP1 (64 bits). When we run the query below and we have any person in our collection with date of birth before the year of 1970 we get the exception "gmtime failed - your system doesn't support dates before 1970".</p>
  
  <pre><code>db.persons.aggregate({
    $project: { 
      date: { 
        year: { $year: "$DateOfBirth" },
        month: { $month: "$DateOfBirth" }, 
        day: { $dayOfMonth: "$DateOfBirth" }
      }
    }
  })
  </code></pre>
  
  <p>I've read in other threads that it's a known issue when running MongoDB on certain Windows versions. Note that our project cannot be deployed in other platform than Microsoft.</p>