fix: multiple file upload, locales, tests (#779)
This commit is contained in:
@ -3,13 +3,13 @@ import { localToUTC, utcToLocal } from '../utc.util';
|
||||
describe('utc util', () => {
|
||||
it('converts local (Hawaii time) to UTC', () => {
|
||||
expect(localToUTC(new Date(2023, 1, 12, 10, 5, 35)).toString()).toEqual(
|
||||
'Sun Feb 12 2023 20:05:35 GMT-1000 (Hawaii-Aleutian Standard Time)',
|
||||
new Date(2023, 1, 12, 20, 5, 35).toString(),
|
||||
);
|
||||
});
|
||||
|
||||
it('converts UTC to local (Hawaii time)', () => {
|
||||
expect(utcToLocal(new Date(2023, 1, 12, 15, 5, 35)).toString()).toEqual(
|
||||
'Sun Feb 12 2023 05:05:35 GMT-1000 (Hawaii-Aleutian Standard Time)',
|
||||
new Date(2023, 1, 12, 5, 5, 35).toString(),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user