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

Commit

Permalink
fix(mock.TzDate): getDay() takes into account the timezone offset
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebisson authored and vojtajina committed Feb 29, 2012
1 parent e68c02c commit e86bafe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/angular-mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e86bafe

Please sign in to comment.