We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1daca8d commit c89c3c3Copy full SHA for c89c3c3
test/ng/filter/filtersSpec.js
@@ -247,7 +247,10 @@ describe('filters', function() {
247
});
248
249
it('should accept negative numbers as strings', function() {
250
- expect(date('-1')).toEqual('Dec 31, 1969');
+ //Note: this tests a timestamp set for 3 days before the unix epoch.
251
+ //The behavior of `date` depends on your timezone, which is why we check just
252
+ //the year and not the whole daye. See Issue #4218
253
+ expect(date('-259200000').split(' ')[2]).toEqual('1969');
254
255
256
it('should format timezones correctly (as per ISO_8601)', function() {
0 commit comments