aboutsummaryrefslogtreecommitdiffstats
path: root/test/angular-mocks.js
diff options
context:
space:
mode:
authorMisko Hevery2010-10-26 14:25:01 -0700
committerMisko Hevery2010-10-26 14:25:01 -0700
commit1d52349440d40de527b5d7f3849070f525c1b79b (patch)
tree1dd98c7b68e6c6c9ae129ced25beec94e7c23c93 /test/angular-mocks.js
parent3eb0c8bc67644412f34e55945f4b538f87bbb003 (diff)
downloadangular.js-1d52349440d40de527b5d7f3849070f525c1b79b.tar.bz2
Reverted change 841013a4c4d25acf6fc9ff40e449c3d0a4b82ec3 which does not work on all browsers
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",