Bug 957120 - Fix the when parameter in order to be expressed in millisecs. r=wesj, a=bajaj
authorFederico Paolinelli <fedepaol@gmail.com>
Wed, 08 Jan 2014 16:51:18 -0500
changeset 167874 4a876256830eaff08db8c206ead3ddd1302ac66d
parent 167873 92703e5c84a04a14125142982f92037830fb736e
child 167875 ff7059bb9c3eba1750d6ae77f54b4f14edee225f
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswesj, bajaj
bugs957120
milestone27.0
Bug 957120 - Fix the when parameter in order to be expressed in millisecs. r=wesj, a=bajaj
mobile/android/chrome/content/downloads.js
--- a/mobile/android/chrome/content/downloads.js
+++ b/mobile/android/chrome/content/downloads.js
@@ -91,17 +91,17 @@ var Downloads = {
     let msg = {
         type: "Notification:Show",
         id: this.getNotificationIdFromDownload(aDownload),
         title: aTitle,
         smallIcon: URI_GENERIC_ICON_DOWNLOAD,
         text: aMessage,
         ongoing: false,
         cookie: aDownload.guid,
-        when: aDownload.startTime
+        when: (aDownload.startTime / 1000)
     };
 
     if (aOptions && aOptions.icon) {
       msg.smallIcon = aOptions.icon;
     }
 
     if (aOptions && aOptions.percentComplete) {
       msg.progress_value = aOptions.percentComplete;