Fix timezone issue causing test to fail.

This commit is contained in:
Dermot Duffy
2023-06-16 20:39:17 -07:00
parent 1eafe42e7d
commit 2faaf9e326
@@ -24,8 +24,8 @@ const createRecordingMedia = (): FrigateRecordingViewMedia => {
'camera-1', 'camera-1',
{ {
cameraID: 'camera-1', cameraID: 'camera-1',
startTime: new Date('2023-06-16T20:00:00'), startTime: new Date('2023-06-16T20:00:00Z'),
endTime: new Date('2023-06-16T20:59:59'), endTime: new Date('2023-06-16T20:59:59Z'),
events: 1, events: 1,
}, },
'recording-id', 'recording-id',
@@ -118,7 +118,7 @@ describe('getMediaDownloadPath', () => {
expect(endpoint).toEqual({ expect(endpoint).toEqual({
endpoint: endpoint:
'/api/frigate/frigate/recording/camera-1/start/1686970800/end/1686974399?download=true', '/api/frigate/frigate/recording/camera-1/start/1686945600/end/1686949199?download=true',
sign: true, sign: true,
}); });
}); });