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 505608 fb9b6c366557
parent 505607 e990a032ac3c
child 505609 a2d7fd0f5139
child 505641 c758d2a5b8cb
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [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);