[f-spot/taglib-metadata] Use changed timestamps, as created don't appear to be working.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot/taglib-metadata] Use changed timestamps, as created don't appear to be working.
- Date: Fri, 2 Jul 2010 22:21:59 +0000 (UTC)
commit 441ca95ec03b42aa254ddb6feef795aedf9bcb8b
Author: Ruben Vermeersch <ruben savanne be>
Date: Sat Jul 3 00:01:31 2010 +0200
Use changed timestamps, as created don't appear to be working.
src/Core/FileBrowsableItem.cs | 4 ++--
src/Import/FileImportSource.cs | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/Core/FileBrowsableItem.cs b/src/Core/FileBrowsableItem.cs
index e0caebd..4f619bb 100644
--- a/src/Core/FileBrowsableItem.cs
+++ b/src/Core/FileBrowsableItem.cs
@@ -47,8 +47,8 @@ namespace FSpot {
private DateTime CreateDate {
get {
- var info = GLib.FileFactory.NewForUri (DefaultVersion.Uri).QueryInfo ("time::created", GLib.FileQueryInfoFlags.None, null);
- return NativeConvert.ToDateTime ((long)info.GetAttributeULong ("time::created"));
+ var info = GLib.FileFactory.NewForUri (DefaultVersion.Uri).QueryInfo ("time::changed", GLib.FileQueryInfoFlags.None, null);
+ return NativeConvert.ToDateTime ((long)info.GetAttributeULong ("time::changed"));
}
}
diff --git a/src/Import/FileImportSource.cs b/src/Import/FileImportSource.cs
index a6bd603..7f68d5a 100644
--- a/src/Import/FileImportSource.cs
+++ b/src/Import/FileImportSource.cs
@@ -186,8 +186,8 @@ namespace FSpot.Import
private DateTime CreateDate {
get {
- var info = GLib.FileFactory.NewForUri (DefaultVersion.Uri).QueryInfo ("time::created", GLib.FileQueryInfoFlags.None, null);
- return NativeConvert.ToDateTime ((long)info.GetAttributeULong ("time::created"));
+ var info = GLib.FileFactory.NewForUri (DefaultVersion.Uri).QueryInfo ("time::changed", GLib.FileQueryInfoFlags.None, null);
+ return NativeConvert.ToDateTime ((long)info.GetAttributeULong ("time::changed"));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]