mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
refactor: sync frontend
This commit is contained in:
@ -43,6 +43,10 @@ namespace utils {
|
||||
return `${year}/${month}/${date}`;
|
||||
}
|
||||
|
||||
export function getDataStringWithTs(ts: number): string {
|
||||
return getDateTimeString(ts * 1000);
|
||||
}
|
||||
|
||||
export function getTimeString(t: Date | number | string): string {
|
||||
const d = new Date(getTimeStampByDate(t));
|
||||
|
||||
|
Reference in New Issue
Block a user