void DateBadge::init(const QDateTime &date) { text = langDayOfMonthFull(date.date()); width = st::msgServiceFont->width(text); }
void ServiceMessagePainter::paintDate(Painter &p, const QDateTime &date, int y, int w) { auto dateText = langDayOfMonthFull(date.date()); auto dateTextWidth = st::msgServiceFont->width(dateText); paintPreparedDate(p, dateText, dateTextWidth, y, w); }