diff --git a/src/angular-mocks.js b/src/angular-mocks.js index 0a8b573bf894..625dcf44e419 100644 --- a/src/angular-mocks.js +++ b/src/angular-mocks.js @@ -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