aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular-mocks.js
diff options
context:
space:
mode:
authorStephane Bisson2012-02-06 11:07:09 +0800
committerVojta Jina2012-02-29 15:53:51 -0800
commite86bafecd212789cde61050073a69c1e49ffd011 (patch)
tree8a3e8d4e6af42296edeaceed23233efc428075e7 /src/angular-mocks.js
parente68c02c5372a7234cff4113b17ba9b0d30d9321a (diff)
downloadangular.js-e86bafecd212789cde61050073a69c1e49ffd011.tar.bz2
fix(mock.TzDate): getDay() takes into account the timezone offset
Diffstat (limited to 'src/angular-mocks.js')
-rw-r--r--src/angular-mocks.js2
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