Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 2e318fe

Browse files
committed
Remove dt parse
1 parent aa3f53a commit 2e318fe

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/utils.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@
374374
else {
375375
dat = {};
376376
utils.each(rec, function (v, k) {
377-
if( v instanceof Date ) { v = v.getTime(); }
378377
dat[k] = stripDollarPrefixedKeys(v);
379378
});
380379
}

tests/unit/utils.spec.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,6 @@ describe('$firebaseUtils', function () {
172172
$utils.toJSON({foo: 'bar', baz: undef});
173173
}).toThrowError(Error);
174174
});
175-
176-
it('should parse dates into milliseconds since epoch', function() {
177-
var date = new Date();
178-
var ts = date.getTime();
179-
expect($utils.toJSON({date: date}).date).toBe(ts);
180-
});
181175
});
182176

183177
describe('#getKey', function() {

0 commit comments

Comments
 (0)