[grilo-plugins] filesystem: updated to new date format
- From: Guillaume JÃrÃme Emont <guijemont src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] filesystem: updated to new date format
- Date: Fri, 7 Oct 2011 15:12:37 +0000 (UTC)
commit f6986ed41a7f92c24f117ddbe0bd3d6e2d261845
Author: Guillaume Emont <guijemont igalia com>
Date: Thu Jun 9 20:54:44 2011 +0200
filesystem: updated to new date format
src/media/filesystem/grl-filesystem.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/media/filesystem/grl-filesystem.c b/src/media/filesystem/grl-filesystem.c
index 7c93a0e..c35dff9 100644
--- a/src/media/filesystem/grl-filesystem.c
+++ b/src/media/filesystem/grl-filesystem.c
@@ -450,11 +450,11 @@ create_content (GrlMedia *content,
/* Date */
GTimeVal time;
- gchar *time_str;
+ GDateTime *date_time;
g_file_info_get_modification_time (info, &time);
- time_str = g_time_val_to_iso8601 (&time);
- grl_media_set_date (media, time_str);
- g_free (time_str);
+ date_time = g_date_time_new_from_timeval_utc (&time);
+ grl_media_set_modification_date (media, date_time);
+ g_date_time_unref (date_time);
/* Thumbnail */
gboolean thumb_failed =
@@ -1113,7 +1113,7 @@ grl_filesystem_source_supported_keys (GrlMetadataSource *source)
GRL_METADATA_KEY_TITLE,
GRL_METADATA_KEY_URL,
GRL_METADATA_KEY_MIME,
- GRL_METADATA_KEY_DATE,
+ GRL_METADATA_KEY_MODIFICATION_DATE,
GRL_METADATA_KEY_CHILDCOUNT,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]