[PATCH 01/11] filesystem: updated to new date format
- From: Guillaume Emont <guijemont igalia com>
- To: grilo-list gnome org
- Cc: Guillaume Emont <guijemont igalia com>
- Subject: [PATCH 01/11] filesystem: updated to new date format
- Date: Fri, 22 Jul 2011 15:17:25 +0200
---
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);
}
--
1.7.4.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]