mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-18 17:31:53 +08:00
client: fix a typo
This commit is contained in:
parent
d7004bc3b5
commit
89334691b7
@ -2,7 +2,7 @@
|
|||||||
* Formats the given date and time to a string based on the current locale.
|
* Formats the given date and time to a string based on the current locale.
|
||||||
* @param {string | Date | number} date
|
* @param {string | Date | number} date
|
||||||
* @param {"full" | "long" | "medium" | "short" | "none" | undefined} dateStyle
|
* @param {"full" | "long" | "medium" | "short" | "none" | undefined} dateStyle
|
||||||
* @param {"full" | "long" | "medium" | "short" | "none" | undefined} tiemStyle
|
* @param {"full" | "long" | "medium" | "short" | "none" | undefined} timeStyle
|
||||||
*/
|
*/
|
||||||
export function formatDateTime(date, dateStyle = "medium", timeStyle = "medium") {
|
export function formatDateTime(date, dateStyle = "medium", timeStyle = "medium") {
|
||||||
const locale = navigator.language;
|
const locale = navigator.language;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user