Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix #1096

Amruth Pillaib697f7349247
diff --git a/client/utils/date.ts b/client/utils/date.ts
index fafdecaaa..0023aed7a 100644
--- a/client/utils/date.ts
+++ b/client/utils/date.ts
@@ -38,6 +38,10 @@ export const formatDateString = (date: string | DateRange, formatStr: string): s
if (!dayjs(date.start).isValid()) return null;
+ if (dayjs(date.start).isSame(date.end)) {
+ return dayjs(date.start).format(formatStr);
+ }
+
if (!isEmpty(date.end) && dayjs(date.end).isValid()) {
return `${dayjs(date.start).format(formatStr)} - ${dayjs(date.end).format(formatStr)}`;
}