[rygel] tracker: No need to convert dates to ISO8601 anymore
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] tracker: No need to convert dates to ISO8601 anymore
- Date: Sat, 5 Dec 2009 01:20:59 +0000 (UTC)
commit da9cc3f659e6cfa9098ae1a1e3e1562cf586dbc3
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Dec 1 18:06:27 2009 +0200
tracker: No need to convert dates to ISO8601 anymore
.../tracker/rygel-tracker-item-factory.vala | 19 +------------------
1 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-item-factory.vala b/src/plugins/tracker/rygel-tracker-item-factory.vala
index e08e3fe..992893a 100644
--- a/src/plugins/tracker/rygel-tracker-item-factory.vala
+++ b/src/plugins/tracker/rygel-tracker-item-factory.vala
@@ -64,7 +64,7 @@ public abstract class Rygel.TrackerItemFactory {
item.size = metadata[Metadata.SIZE].to_int ();
if (metadata[Metadata.DATE] != "")
- item.date = seconds_to_iso8601 (metadata[Metadata.DATE]);
+ item.date = metadata[Metadata.DATE];
item.mime_type = metadata[Metadata.MIME];
@@ -83,22 +83,5 @@ public abstract class Rygel.TrackerItemFactory {
return keys;
}
-
- private string seconds_to_iso8601 (string seconds) {
- string date;
-
- if (seconds != "") {
- TimeVal tv = TimeVal ();
-
- tv.tv_sec = seconds.to_int ();
- tv.tv_usec = 0;
-
- date = tv.to_iso8601 ();
- } else {
- date = "";
- }
-
- return date;
- }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]