aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/FiltersSpec.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/FiltersSpec.js b/test/FiltersSpec.js
index 1767bede..e5d1b8f4 100644
--- a/test/FiltersSpec.js
+++ b/test/FiltersSpec.js
@@ -88,7 +88,11 @@ describe('filter', function(){
describe('date', function(){
var date = angular.String.toDate('2010-10-13T14:45:23Z');
+
+ //butt-ugly hack: force the date to be 2pm PDT for locale testing
date.setHours(14);
+ date.getTimezoneOffset = function() { return 7 * 60; };
+
it('should do basic filter', function() {
expect(filter.date(date)).toEqual(date.toLocaleDateString());