From 53783d15f5f2832b09d0305047d02e8fc548e736 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Thu, 11 May 2023 10:51:09 +0530 Subject: [PATCH] test: sqlite corrections for CI Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/tests/db/timezone.spec.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/playwright/tests/db/timezone.spec.ts b/tests/playwright/tests/db/timezone.spec.ts index 118a51115f..14c999d52e 100644 --- a/tests/playwright/tests/db/timezone.spec.ts +++ b/tests/playwright/tests/db/timezone.spec.ts @@ -623,8 +623,16 @@ test.describe('External DB - DateTime column', async () => { let expectedDateTimeWithTz = []; if (isSqlite(context)) { - expectedDateTimeWithoutTz = ['2023-04-27 10:00:00', '2023-04-27 10:00:00+05:30', `2023-04-27 04:30:00+00:00`]; - expectedDateTimeWithTz = ['2023-04-27 10:00:00', '2023-04-27 10:00:00+05:30', `2023-04-27 04:30:00+00:00`]; + expectedDateTimeWithoutTz = [ + '2023-04-27 10:00:00', + '2023-04-27 10:00:00+05:30', + getDateTimeInUTCTimeZone('2023-04-27 10:00:00+00:00'), + ]; + expectedDateTimeWithTz = [ + '2023-04-27 10:00:00', + '2023-04-27 10:00:00+05:30', + getDateTimeInUTCTimeZone('2023-04-27 10:00:00+00:00'), + ]; } else if (isPg(context)) { expectedDateTimeWithoutTz = ['2023-04-27 10:00:00', '2023-04-27 10:00:00', '2023-04-27 10:00:00']; expectedDateTimeWithTz = [