aboutsummaryrefslogtreecommitdiffstats
path: root/test/angular-mocks.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/angular-mocks.js')
-rw-r--r--test/angular-mocks.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/angular-mocks.js b/test/angular-mocks.js
index a090f0e8..f13ca763 100644
--- a/test/angular-mocks.js
+++ b/test/angular-mocks.js
@@ -195,7 +195,7 @@ angular.service('$browser', function(){
function TzDate(offset, timestamp) {
if (angular.isString(timestamp)) {
var tsStr = timestamp;
- timestamp = new Date(timestamp).getTime();
+ timestamp = angular.String.toDate(timestamp).getTime();
if (isNaN(timestamp))
throw {
name: "Illegal Argument",