Permalink
Browse files

Should fix Unix Timestamp Date Spec for every timezone

  • Loading branch information...
1 parent 992345a commit efe3071afbe0b1be0c926303d68f9f7897bd694c @arian arian committed Apr 11, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 Specs/1.3/Types/Date.js
View
3 Specs/1.3/Types/Date.js
@@ -432,7 +432,8 @@ describe('Date', function(){
expect(d.format('%p')).toEqual('AM');
});
it('should return the Unix Timestamp', function(){
- expect(d.format('%s')).toEqual('879984123');
+ var d = new Date(Date.UTC(2002, 0, 7, 1, 1, 1));
+ expect(d.format('%s')).toEqual('1010365261');
});
it('should return the seconds as two digits', function(){
expect(d.format('%S')).toEqual('03');

0 comments on commit efe3071

Please sign in to comment.