Bug 1507836 - Use long style in "last sync" date formatted r=eoger
authorArt-Vanderlay <causality1@outlook.com>
Sun, 02 Dec 2018 18:46:47 +0000
changeset 508388 fb9b6c3665571b702d087dce1bf9e6e024c92131
parent 508387 e990a032ac3cf6c071a79014d4b412bcd2007af1
child 508389 a2d7fd0f5139d9885ecf3799c070f0e66872c066
child 508421 c758d2a5b8cb04b1b5e5188a309d2994ad430d80
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerseoger
bugs1507836
milestone65.0a1
first release with
nightly linux32
fb9b6c366557 / 65.0a1 / 20181202215653 / files
nightly linux64
fb9b6c366557 / 65.0a1 / 20181202215653 / files
nightly mac
fb9b6c366557 / 65.0a1 / 20181202215653 / files
nightly win32
fb9b6c366557 / 65.0a1 / 20181202215653 / files
nightly win64
fb9b6c366557 / 65.0a1 / 20181202215653 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1507836 - Use long style in "last sync" date formatted r=eoger Changed format style in "last sync" date from short to long. Hovering over listed devices in 'send tab to device' on the page action menu shows the last sync date in the short style (last synced: 1 min ago). Changed this to display date in the long style (last synced: 1 minute ago). Differential Revision: https://phabricator.services.mozilla.com/D13634
browser/base/content/browser-sync.js
--- a/browser/base/content/browser-sync.js
+++ b/browser/base/content/browser-sync.js
@@ -716,17 +716,17 @@ var gSync = {
         syncIcon.removeAttribute("tooltiptext");
         syncNow.removeAttribute("tooltiptext");
       }
     }
   },
 
   get relativeTimeFormat() {
     delete this.relativeTimeFormat;
-    return this.relativeTimeFormat = new Services.intl.RelativeTimeFormat(undefined, {style: "short"});
+    return this.relativeTimeFormat = new Services.intl.RelativeTimeFormat(undefined, {style: "long"});
   },
 
   formatLastSyncDate(date) {
     if (!date) { // Date can be null before the first sync!
       return null;
     }
     const relativeDateStr = this.relativeTimeFormat.formatBestUnit(date);
     return this.syncStrings.formatStringFromName("lastSync2.label", [relativeDateStr], 1);