mirror of
https://github.com/zoldar/jenot.git
synced 2026-01-03 14:32:54 +00:00
10 lines
299 B
JavaScript
10 lines
299 B
JavaScript
export function reminderLabel(reminder) {
|
|
if (reminder.enabled) {
|
|
const date = new Date(`${reminder.date}T${reminder.time}:00`);
|
|
const day = date.getDate();
|
|
const month = date.toLocaleString("en", { month: "short" });
|
|
return `${day} ${month} ${reminder.time}`;
|
|
}
|
|
|
|
return "";
|
|
}
|