From 183d727c1814aaad4481566866536ab35f6ba655 Mon Sep 17 00:00:00 2001 From: Olivier Combe Date: Mon, 8 Jan 2018 10:10:50 +0100 Subject: [PATCH] test(common): make date pipe tests work in more timezones Fixes #21112 --- packages/common/test/pipes/date_pipe_spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/common/test/pipes/date_pipe_spec.ts b/packages/common/test/pipes/date_pipe_spec.ts index 93f549dcaf51a..4b5a7c0567d36 100644 --- a/packages/common/test/pipes/date_pipe_spec.ts +++ b/packages/common/test/pipes/date_pipe_spec.ts @@ -263,10 +263,10 @@ import localeTh from '@angular/common/locales/th'; }); it('should format invalid in IE ISO date', - () => expect(pipe.transform('2017-01-11T09:25:14.014-0500')).toEqual('Jan 11, 2017')); + () => expect(pipe.transform('2017-01-11T12:00:00.014-0500')).toEqual('Jan 11, 2017')); it('should format invalid in Safari ISO date', - () => expect(pipe.transform('2017-01-20T19:00:00+0000')).toEqual('Jan 20, 2017')); + () => expect(pipe.transform('2017-01-20T12:00:00+0000')).toEqual('Jan 20, 2017')); // test for the following bugs: // https://github.com/angular/angular/issues/9524