mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
fix: add prefer-date-now rule (#5113)
This commit is contained in:
@@ -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