Server: Fixed second duration

pull/5314/head
Laurent Cozic 2021-08-15 00:39:28 +01:00
parent 543413d64b
commit c7421dfbe1
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,11 @@
import { Day, Month, Second } from './time';
describe('time', function() {
it('should have correct interval durations', async function() {
expect(Second).toBe(1000);
expect(Day).toBe(86400000);
expect(Month).toBe(2592000000);
});
});

View File

@ -14,7 +14,7 @@ function initDayJs() {
initDayJs();
export const Second = 60 * 1000;
export const Second = 1000;
export const Minute = 60 * Second;
export const Hour = 60 * Minute;
export const Day = 24 * Hour;