diff --git a/src/providers/twitch/TwitchChannel.cpp b/src/providers/twitch/TwitchChannel.cpp index 1f6037c8d..8ada95ba4 100644 --- a/src/providers/twitch/TwitchChannel.cpp +++ b/src/providers/twitch/TwitchChannel.cpp @@ -754,7 +754,7 @@ void TwitchChannel::loadRecentMessages() { shared.get()->lastDate_ = msgDate; auto msg = makeSystemMessage( - msgDate.toString(Qt::SystemLocaleLongDate), + QLocale().toString(msgDate, QLocale::LongFormat), QTime(0, 0)); msg->flags.set(MessageFlag::RecentMessage); allBuiltMessages.emplace_back(msg); diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 14e864e87..d55f6a534 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -607,10 +607,10 @@ void ChannelView::setChannel(ChannelPtr underlyingChannel) if (this->channel_->lastDate_ != QDate::currentDate()) { this->channel_->lastDate_ = QDate::currentDate(); - auto msg = - makeSystemMessage(QDate::currentDate().toString( - Qt::SystemLocaleLongDate), - QTime(0, 0)); + auto msg = makeSystemMessage( + QLocale().toString(QDate::currentDate(), + QLocale::LongFormat), + QTime(0, 0)); this->channel_->addMessage(msg); } // When the message was received in the underlyingChannel,