mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-27 08:33:27 +01:00
use same datetime format in "written by" section of article preview
This commit is contained in:
parent
0178a046eb
commit
3bdcdc0c21
@ -130,6 +130,11 @@ void WebViewer::loadMessages(const QList<Message>& messages, RootItem* root) {
|
||||
}
|
||||
}
|
||||
|
||||
QString msg_date = qApp->settings()->value(GROUP(Messages), SETTING(Messages::UseCustomDate)).toBool()
|
||||
? message.m_created.toLocalTime().toString(qApp->settings()->value(GROUP(Messages),
|
||||
SETTING(Messages::CustomDateFormat)).toString())
|
||||
: QLocale().toString(message.m_created.toLocalTime(), QLocale::FormatType::ShortFormat);
|
||||
|
||||
messages_layout.append(single_message_layout
|
||||
.arg(message.m_title,
|
||||
tr("Written by ") + (message.m_author.isEmpty() ?
|
||||
@ -137,7 +142,7 @@ void WebViewer::loadMessages(const QList<Message>& messages, RootItem* root) {
|
||||
message.m_author),
|
||||
message.m_url,
|
||||
message.m_contents,
|
||||
QLocale().toString(message.m_created.toLocalTime(), QLocale::FormatType::ShortFormat),
|
||||
msg_date,
|
||||
enclosures,
|
||||
enclosure_images));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user