From 048c2afcc1d9ba6ee2d9935a5f95e55dcfcab6bc Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 27 Jun 2018 22:29:46 +0200 Subject: [PATCH] Fix deprecated date.toLocaleFormat --- umap/static/umap/js/umap.layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.layer.js b/umap/static/umap/js/umap.layer.js index 79994308..0e3753a8 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -842,7 +842,7 @@ L.U.DataLayer = L.Class.extend({ var appendVersion = function (data) { var date = new Date(parseInt(data.at, 10)); - var content = date.toLocaleFormat() + ' (' + parseInt(data.size) / 1000 + 'Kb)'; + var content = date.toLocaleDateString(L.locale) + ' (' + parseInt(data.size) / 1000 + 'Kb)'; var el = L.DomUtil.create('div', 'umap-datalayer-version', versionsContainer); var a = L.DomUtil.create('a', '', el); L.DomUtil.add('span', '', el, content);