[rygel] media-export: Fix TIME_MODIFIED query
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Fix TIME_MODIFIED query
- Date: Sat, 22 Feb 2020 21:34:46 +0000 (UTC)
commit b3d7d462c75ca867f325525258966fd651de6b1c
Author: Jens Georg <mail jensge org>
Date: Sat Feb 22 22:29:46 2020 +0100
media-export: Fix TIME_MODIFIED query
The fix for removing TimeVal was wrong
src/plugins/media-export/rygel-media-export-extractor.vala | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-extractor.vala
b/src/plugins/media-export/rygel-media-export-extractor.vala
index d0b29210..07ed0108 100644
--- a/src/plugins/media-export/rygel-media-export-extractor.vala
+++ b/src/plugins/media-export/rygel-media-export-extractor.vala
@@ -106,11 +106,10 @@ public class Rygel.MediaExport.Extractor : Object {
this.serialized_info.insert (Serializer.TITLE, "s", display_name);
}
- var mtime = file_info.get_attribute_int64
- (FileAttribute.TIME_MODIFIED);
+ var mtime = file_info.get_attribute_uint64 (FileAttribute.TIME_MODIFIED);
this.serialized_info.insert (Serializer.MODIFIED, "t", mtime);
- var dt = new DateTime.from_unix_utc (mtime);
+ var dt = new DateTime.from_unix_utc ((int64) mtime);
var date = "%sZ".printf (dt.format ("%Y-%m-%dT%H:%M:%S"));
this.serialized_info.insert (Serializer.DATE, "s", date);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]