Closed Bug 1313798 Opened 3 years ago Closed 3 years ago
.prototype .to Locale Format uses in services/sync
Date.prototype.toLocaleFormat is a non-standard API and we plan to warn when it's used (bug 1299900) and eventually want to remove it completely (bug 818634). As a first step we need to replace all Date.prototype.toLocaleFormat uses in Firefox with standardized APIs. Date.prototype.toLocaleFormat is used in services/sync/modules/service.js and services/sync/modules/stages/enginesync.js. I've replaced both uses by adding a new helper method to services/sync/modules/util.js, and I've also removed the no longer used format string constant in services/sync/modules/constants.js.
Attachment #8805728 - Flags: review?(rnewman) → review+
Thanks for the prompt review!
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/7d4a5ed8adf1 Remove Date.prototype.toLocaleFormat uses in services/sync. r=rnewman
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.