emberjs/data — pull request #483 by iperdomo (2012-11-19 10:37:50+00:00)
Title: Fixes issue when a date is serialized as a Unix timestamp

Basically the code was trying to use a search function on a Number which is not correct.

The pull request includes a failing test case.

````bash
Building Ember Data...
Done
Running: package=all, package=all&jquery=1.7.2&nojshint=true, package=all&extendprototypes=true&nojshint=true, package=all&extendprototypes=true&jquery=1.7.2&nojshint=true, package=all&dist=build&nojshint=true
Running: {"package":"all"}
Module Failed: Default DS.Transforms
Test Failed: the default date transform
Assertion Failed: Died on test #3 at file:///home/iperdomo/workspace/www/m/ember-data/tests/qunit/qunit.js:343
at :118
at :120: 'undefined' is not a function (evaluating 'serialized.search(/^\d{4}-\d{2}-\d{2}$/)')
Time: 2047ms, Total: 1289, Passed: 1288, Failed: 1
Tests Failed
````

After the fix
````bash
Building Ember Data...
Done
Running: package=all, package=all&jquery=1.7.2&nojshint=true, package=all&extendprototypes=true&nojshint=true, package=all&extendprototypes=true&jquery=1.7.2&nojshint=true, package=all&dist=build&nojshint=true
Running: {"package":"all"}
Time: 2029ms, Total: 1290, Passed: 1290, Failed: 0
Running: {"package":"all","jquery":"1.7.2","nojshint":"true"}
Time: 1496ms, Total: 1231, Passed: 1231, Failed: 0
Running: {"package":"all","extendprototypes":"true","nojshint":"true"}
Time: 1489ms, Total: 1231, Passed: 1231, Failed: 0
Running: {"package":"all","extendprototypes":"true","jquery":"1.7.2","nojshint":"true"}
Time: 1507ms, Total: 1231, Passed: 1231, Failed: 0
Running: {"package":"all","dist":"build","nojshint":"true"}
Time: 1494ms, Total: 1231, Passed: 1231, Failed: 0
Tests Passed
````