mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix(mock.TzDate): getDay() takes into account the timezone offset
This commit is contained in:
parent
e68c02c537
commit
e86bafecd2
1 changed files with 1 additions and 1 deletions
2
src/angular-mocks.js
vendored
2
src/angular-mocks.js
vendored
|
|
@ -491,7 +491,7 @@ angular.mock.TzDate = function (offset, timestamp) {
|
|||
};
|
||||
|
||||
self.getDay = function() {
|
||||
return self.origDate.getDay();
|
||||
return self.date.getDay();
|
||||
};
|
||||
|
||||
//hide all methods not implemented in this mock that the Date prototype exposes
|
||||
|
|
|
|||
Loading…
Reference in a new issue