mirror of https://github.com/laurent22/joplin.git
Server: Fixed second duration
parent
543413d64b
commit
c7421dfbe1
|
@ -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);
|
||||
});
|
||||
|
||||
});
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue