Skip to content

Commit

Permalink
Merge pull request #3395 from camptocamp/yyyy
Browse files Browse the repository at this point in the history
Prefers default years on 4 digits (WMS-T)
  • Loading branch information
ger-benjamin committed Jan 16, 2018
2 parents 5f4e181 + 6fa3bd5 commit 431ede2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/wmstime.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ ngeo.WMSTime.prototype.formatTimeValue = function(time, resolution, opt_useISOFo
// Localized format.
if (!opt_useISOFormat) {
const gettextCatalog = this.gettextCatalog_;
yearResolution = gettextCatalog.getString('yy');
monthResolution = gettextCatalog.getString('M/yy');
dayResolution = gettextCatalog.getString('M/d/yy');
yearResolution = gettextCatalog.getString('yyyy');
monthResolution = gettextCatalog.getString('M/yyyy');
dayResolution = gettextCatalog.getString('M/d/yyyy');
}

switch (resolution) {
Expand Down

0 comments on commit 431ede2

Please sign in to comment.