mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix: add prefer-date-now rule (#5113)
This commit is contained in:
@@ -85,7 +85,7 @@ export function useBlockSuiteMetaHelper(
|
||||
|
||||
setPageMeta(pageId, {
|
||||
trash: true,
|
||||
trashDate: +new Date(),
|
||||
trashDate: Date.now(),
|
||||
trashRelate: isRoot ? parentMeta?.id : undefined,
|
||||
});
|
||||
setPageReadonly(pageId, true);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { EventBasedChannel } from 'async-call-rpc';
|
||||
|
||||
export function getTime() {
|
||||
return new Date().getTime();
|
||||
return Date.now();
|
||||
}
|
||||
|
||||
export const isMacOS = () => {
|
||||
|
||||
Reference in New Issue
Block a user