Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: change date style to (MMM DD, YYYY, HH:mm AM/PM)

thecodrr42d6cfab958a
diff --git a/packages/core/utils/date.js b/packages/core/utils/date.js
index 1a9f90559..3202af491 100644
--- a/packages/core/utils/date.js
+++ b/packages/core/utils/date.js
@@ -12,13 +12,8 @@ export function getWeekGroupFromTimestamp(timestamp) {
}
export function formatDate(date) {
- return new Date(date).toLocaleDateString("en", {
- day: "numeric",
- month: "long",
- year: "numeric",
- hour: "2-digit",
- hour12: true,
- minute: "2-digit",
- second: "2-digit",
+ return new Date(date).toLocaleString(undefined, {
+ dateStyle: "medium",
+ timeStyle: "short",
});
}