From e86bafecd212789cde61050073a69c1e49ffd011 Mon Sep 17 00:00:00 2001 From: Stephane Bisson Date: Mon, 6 Feb 2012 11:07:09 +0800 Subject: [PATCH] fix(mock.TzDate): getDay() takes into account the timezone offset --- src/angular-mocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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