From e5da0dbfd33a066b1c28169629bf9b329a0a33a8 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Fri, 17 Mar 2023 06:08:58 +0530 Subject: [PATCH] test: tz GMT fix Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/setup/xcdb-records.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright/setup/xcdb-records.ts b/tests/playwright/setup/xcdb-records.ts index c97fa1fc2e..a0267c9680 100644 --- a/tests/playwright/setup/xcdb-records.ts +++ b/tests/playwright/setup/xcdb-records.ts @@ -39,7 +39,7 @@ const rowMixedValue = (column: ColumnType, index: number) => { // compute timezone offset const offset = new Date().getTimezoneOffset(); const timezoneOffset = - (offset < 0 ? '+' : '-') + + (offset <= 0 ? '+' : '-') + String(Math.abs(Math.round(offset / 60))).padStart(2, '0') + ':' + String(Math.abs(offset % 60)).padStart(2, '0');