Skip to content

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

core: use 2 digits for 12 hour time format

Abdullah Attae75c62e6e14a
diff --git a/packages/core/utils/date.js b/packages/core/utils/date.js
index 3c646378c..9a2256346 100644
--- a/packages/core/utils/date.js
+++ b/packages/core/utils/date.js
@@ -77,7 +77,7 @@ export function formatDate(
type: "date-time"
}
) {
- const timeFormat = options.timeFormat === "12-hour" ? "h:mm A" : "HH:mm";
+ const timeFormat = options.timeFormat === "12-hour" ? "hh:mm A" : "HH:mm";
switch (options.type) {
case "date-time":
return dayjs(date).format(`${options.dateFormat} ${timeFormat}`);