fix(mock.TzDate): getDay() takes into account the timezone offset

This commit is contained in:
Stephane Bisson 2012-02-06 11:07:09 +08:00 committed by Vojta Jina
parent e68c02c537
commit e86bafecd2

View file

@ -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