raven/base/libmygpo-qt/0006-Fix-timestamp-sent-to-gpodder.net-to-correspond-to-U.patch

28 lines
977 B
Diff

From b40cf4eded0c9b0a9feffa3f51919b086b4257f5 Mon Sep 17 00:00:00 2001
From: Bart De Vries <bart@mogwai.be>
Date: Thu, 2 Sep 2021 14:24:40 +0200
Subject: [PATCH 06/10] Fix timestamp sent to gpodder.net to correspond to UTC
According to the gpodder.net API, this timestamp is supposed to be sent
as UTC time.
---
src/JsonCreator.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/JsonCreator.cpp b/src/JsonCreator.cpp
index 9c4f0bc..0c0a5ec 100644
--- a/src/JsonCreator.cpp
+++ b/src/JsonCreator.cpp
@@ -192,7 +192,7 @@ QVariantMap JsonCreator::episodeActionToQVariantMap( const EpisodeActionPtr epis
time.addMSecs(episodeAction->timestamp() % 1000 );
dateTime.setTime(time);
#endif
- map.insert( QLatin1String( "timestamp" ), dateTime.toString(Qt::ISODate) );
+ map.insert( QLatin1String( "timestamp" ), dateTime.toUTC().toString(Qt::ISODate) );
}
if( actionType == EpisodeAction::Play )
{
--
2.47.0