emberjs/data — pull request #326 by Mochaleaf (2012-07-13 01:24:44+00:00)
Title: Fixes #206 - rails date stamp to valid JS date object

In Safari 5.1.5 (mac), new Date("yyyy-mm-dd") doesn't work. This patch works around the issue.

In Safari 6, this works again, however produces odd results:

```javascript
new Date("2012-04-18");
Tue Apr 17 2012 17:00:00 GMT-0700 (PDT)

new Date("2012/04/18");
Wed Apr 18 2012 00:00:00 GMT-0700 (PDT)
```

With this PR, 2012-04-18 will return a date object that matches: "Wed Apr 18 2012 00:00:00 GMT-0700 (PDT)"