refactor: add age to birthday greeting

This commit is contained in:
2026-09-22 10:27:28 +05:30
parent 4bb07a32e0
commit 35dfc880e7
+1 -1
View File
@@ -24,7 +24,7 @@ async function main() {
getWeather() getWeather()
]) ])
const message = `${isBirthday ? "Happy Birthday" : "Good Morning"}, SilicoFlare! const message = `${isBirthday ? `Happy Birthday, SilicoFlare! You are now ${dayjs().diff(dayjs("2003-09-23"), "years")} years old.` : "Good Morning, SilicoFlare!"}
Today is **${dayjs().format("dddd, DD MMMM YYYY")}**. Today is **${dayjs().format("dddd, DD MMMM YYYY")}**.
Hoy es **${dayjs().locale("es").format("dddd, D [de] MMMM [de] YYYY")}**. Hoy es **${dayjs().locale("es").format("dddd, D [de] MMMM [de] YYYY")}**.