convert calendar day view header to user's calendar type

This commit is contained in:
2026-06-24 10:14:09 +03:30
parent cafa139198
commit 069bbb614e

View File

@@ -912,7 +912,7 @@ func (h *Handler) sendDayView(chatID int64, msgID int, user *db.User, date strin
return return
} }
text := fmt.Sprintf("Date: %s", date) text := fmt.Sprintf("Date: %s", formatDateForCalendar(date, user.Calendar))
if len(events) == 0 { if len(events) == 0 {
text += "\nNo events for this day." text += "\nNo events for this day."
kb := tgbotapi.NewInlineKeyboardMarkup( kb := tgbotapi.NewInlineKeyboardMarkup(