Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e86bafe

Browse files
stephanebissonvojtajina
authored andcommittedFeb 29, 2012
fix(mock.TzDate): getDay() takes into account the timezone offset
1 parent e68c02c commit e86bafe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/angular-mocks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ angular.mock.TzDate = function (offset, timestamp) {
491491
};
492492

493493
self.getDay = function() {
494-
return self.origDate.getDay();
494+
return self.date.getDay();
495495
};
496496

497497
//hide all methods not implemented in this mock that the Date prototype exposes

0 commit comments

Comments
 (0)