From 871e970ba0ea831c5db33a40244feaa5e64eee02 Mon Sep 17 00:00:00 2001 From: Jeldrik Hanschke Date: Sun, 15 Oct 2023 23:20:53 +0200 Subject: [PATCH] may not be the same day depending on current time and timezone if using UTC time (#675) --- tests/acceptance/legacy-support-test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/acceptance/legacy-support-test.js b/tests/acceptance/legacy-support-test.js index 7048e41..31a8acf 100644 --- a/tests/acceptance/legacy-support-test.js +++ b/tests/acceptance/legacy-support-test.js @@ -54,9 +54,9 @@ module('Acceptance | legacy support', function (hooks) { }, ], options: [ - { title: '2015-12-24T17:00:00.000Z' }, - { title: '2015-12-24T19:00:00.000Z' }, - { title: '2015-12-31T22:59:00.000Z' }, + { title: new Date('2015-12-24T17:00').toISOString() }, + { title: new Date('2015-12-24T19:00').toISOString() }, + { title: new Date('2015-12-31T22:59').toISOString() }, ], users: [ this.server.create('user', { @@ -104,14 +104,14 @@ module('Acceptance | legacy support', function (hooks) { Intl.DateTimeFormat('en-US', { dateStyle: 'full', timeStyle: 'short', - }).format(new Date('2015-12-24T17:00:00.000Z')), + }).format(new Date('2015-12-24T17:00')), Intl.DateTimeFormat('en-US', { timeStyle: 'short' }).format( - new Date('2015-12-24T19:00:00.000Z') + new Date('2015-12-24T19:00') ), Intl.DateTimeFormat('en-US', { dateStyle: 'full', timeStyle: 'short', - }).format(new Date('2015-12-31T22:59:00.000Z')), + }).format(new Date('2015-12-31T22:59')), ]); assert.deepEqual(PollParticipationPage.options().answers, [ yesLabel,