[grilo-plugins] podcasts: updated to new date format
- From: Guillaume JÃrÃme Emont <guijemont src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] podcasts: updated to new date format
- Date: Fri, 7 Oct 2011 15:13:12 +0000 (UTC)
commit 9b285f597a51d3bce2ebe44ad34b715dc1c22224
Author: Guillaume Emont <guijemont igalia com>
Date: Thu Jun 16 19:01:48 2011 +0200
podcasts: updated to new date format
src/media/podcasts/grl-podcasts.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/media/podcasts/grl-podcasts.c b/src/media/podcasts/grl-podcasts.c
index 1855ce2..f2f9966 100644
--- a/src/media/podcasts/grl-podcasts.c
+++ b/src/media/podcasts/grl-podcasts.c
@@ -607,8 +607,14 @@ build_media (GrlMedia *content,
}
grl_media_set_id (media, url);
- if (date)
- grl_media_set_date (media, date);
+ if (date) {
+ time_t t;
+ GDateTime *date_time;
+ t = g_mime_utils_header_decode_date (date, NULL);
+ date_time = g_date_time_new_from_unix_utc (t);
+ grl_media_set_publication_date (media, date_time);
+ g_date_time_unref (date_time);
+ }
if (desc)
grl_media_set_description (media, desc);
if (mime)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]