diff options
| author | Stephane Bisson | 2012-02-06 11:07:09 +0800 |
|---|---|---|
| committer | Vojta Jina | 2012-02-29 15:53:51 -0800 |
| commit | e86bafecd212789cde61050073a69c1e49ffd011 (patch) | |
| tree | 8a3e8d4e6af42296edeaceed23233efc428075e7 | |
| parent | e68c02c5372a7234cff4113b17ba9b0d30d9321a (diff) | |
| download | angular.js-e86bafecd212789cde61050073a69c1e49ffd011.tar.bz2 | |
fix(mock.TzDate): getDay() takes into account the timezone offset
| -rw-r--r-- | src/angular-mocks.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/angular-mocks.js b/src/angular-mocks.js index 0a8b573b..625dcf44 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 |
