|
|
@ -480,8 +480,14 @@ test.describe('External DB - DateTime column', async () => { |
|
|
|
// without +HH:MM information, display value is same as inserted value
|
|
|
|
// without +HH:MM information, display value is same as inserted value
|
|
|
|
// with +HH:MM information, display value is converted to browser timezone
|
|
|
|
// with +HH:MM information, display value is converted to browser timezone
|
|
|
|
// SQLite doesn't have with & without timezone fields; both are same in this case
|
|
|
|
// SQLite doesn't have with & without timezone fields; both are same in this case
|
|
|
|
DatetimeWithoutTz: ['2023-04-27 10:00', getDateTimeInLocalTimeZone('2023-04-27 04:30:00+00:00')], |
|
|
|
DatetimeWithoutTz: [ |
|
|
|
DatetimeWithTz: ['2023-04-27 10:00', getDateTimeInLocalTimeZone('2023-04-27 04:30:00+00:00')], |
|
|
|
getDateTimeInLocalTimeZone('2023-04-27 10:00:00+00:00'), |
|
|
|
|
|
|
|
getDateTimeInLocalTimeZone('2023-04-27 04:30:00+00:00'), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
DatetimeWithTz: [ |
|
|
|
|
|
|
|
getDateTimeInLocalTimeZone('2023-04-27 10:00:00+00:00'), |
|
|
|
|
|
|
|
getDateTimeInLocalTimeZone('2023-04-27 04:30:00+00:00'), |
|
|
|
|
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
mysql: { |
|
|
|
mysql: { |
|
|
|
DatetimeWithoutTz: [ |
|
|
|
DatetimeWithoutTz: [ |
|
|
@ -629,12 +635,12 @@ test.describe('External DB - DateTime column', async () => { |
|
|
|
|
|
|
|
|
|
|
|
if (isSqlite(context)) { |
|
|
|
if (isSqlite(context)) { |
|
|
|
expectedDateTimeWithoutTz = [ |
|
|
|
expectedDateTimeWithoutTz = [ |
|
|
|
'2023-04-27 10:00:00', |
|
|
|
'2023-04-27 10:00:00+00:00', |
|
|
|
'2023-04-27 10:00:00+05:30', |
|
|
|
'2023-04-27 10:00:00+05:30', |
|
|
|
getDateTimeInUTCTimeZone('2023-04-27 10:00:00+00:00'), |
|
|
|
getDateTimeInUTCTimeZone('2023-04-27 10:00:00+00:00'), |
|
|
|
]; |
|
|
|
]; |
|
|
|
expectedDateTimeWithTz = [ |
|
|
|
expectedDateTimeWithTz = [ |
|
|
|
'2023-04-27 10:00:00', |
|
|
|
'2023-04-27 10:00:00+00:00', |
|
|
|
'2023-04-27 10:00:00+05:30', |
|
|
|
'2023-04-27 10:00:00+05:30', |
|
|
|
getDateTimeInUTCTimeZone('2023-04-27 10:00:00+00:00'), |
|
|
|
getDateTimeInUTCTimeZone('2023-04-27 10:00:00+00:00'), |
|
|
|
]; |
|
|
|
]; |
|
|
|