[gnome-shell] [docInfo] Fix recent items



commit b28c4dcd81bec04928ffc9009932fe04ffa566f7
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Jul 10 00:17:20 2010 +0200

    [docInfo] Fix recent items
    
    GJS no longer translates time_t values into Date objects, update
    the code where we relied on the previous behavior.

 js/misc/docInfo.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/misc/docInfo.js b/js/misc/docInfo.js
index 6e25976..a6df056 100644
--- a/js/misc/docInfo.js
+++ b/js/misc/docInfo.js
@@ -23,7 +23,7 @@ DocInfo.prototype = {
         // We actually used get_modified() instead of get_visited()
         // here, as GtkRecentInfo doesn't updated get_visited()
         // correctly. See http://bugzilla.gnome.org/show_bug.cgi?id=567094
-        this.timestamp = recentInfo.get_modified().getTime() / 1000;
+        this.timestamp = recentInfo.get_modified();
         this.name = recentInfo.get_display_name();
         this._lowerName = this.name.toLowerCase();
         this.uri = recentInfo.get_uri();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]