Browse Source

test: fix handling of GMT +/- tz

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5306/head
Raju Udava 2 years ago
parent
commit
a1610a5a93
  1. 2
      tests/playwright/tests/filters.spec.ts

2
tests/playwright/tests/filters.spec.ts

@ -131,7 +131,7 @@ test.describe('Filter Tests: Numerical', () => {
// convert r[Time] in format 2021-01-01 00:00:00+05.30 to 00:00:00 // convert r[Time] in format 2021-01-01 00:00:00+05.30 to 00:00:00
if (dataType === 'Time') { if (dataType === 'Time') {
records.list.forEach(r => { records.list.forEach(r => {
if (r[dataType]?.length > 8) r[dataType] = r[dataType]?.split(' ')[1]?.split('+')[0]; if (r[dataType]?.length > 8) r[dataType] = r[dataType]?.split(' ')[1]?.split(/[+-]/)[0];
}); });
} }

Loading…
Cancel
Save