convert calendar day view header to user's calendar type
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user