mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-02-04 19:27:33 +01:00
fix #805
This commit is contained in:
parent
085df4cd4d
commit
37c68e9d52
@ -24,7 +24,7 @@
|
||||
<url type="donation">https://github.com/sponsors/martinrotter</url>
|
||||
<content_rating type="oars-1.1" />
|
||||
<releases>
|
||||
<release version="4.2.4" date="2022-09-16"/>
|
||||
<release version="4.2.4" date="2022-09-19"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.0">
|
||||
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||
|
@ -98,10 +98,9 @@ void Message::sanitize(const Feed* feed, bool fix_future_datetimes) {
|
||||
|
||||
// Fix datetimes in future.
|
||||
if ((fix_future_datetimes && m_createdFromFeed && m_created.toUTC() > QDateTime::currentDateTimeUtc()) ||
|
||||
(m_createdFromFeed && !m_created.isValid())) {
|
||||
(m_createdFromFeed && (!m_created.isValid() || m_created.toSecsSinceEpoch() < 0))) {
|
||||
qWarningNN << LOGSEC_CORE << "Fixing date of article" << QUOTE_W_SPACE(m_title) << "from invalid date/time"
|
||||
<< QUOTE_W_SPACE_DOT(m_created);
|
||||
|
||||
m_createdFromFeed = false;
|
||||
m_created = QDateTime::currentDateTimeUtc();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user