From 31bf449e736ca34b6026bb6fa3703ab6f4493076 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 4 Jul 2023 10:19:05 +0200 Subject: [PATCH] Display time in datalayer versions list fix #852 --- 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 5647b89b..212a71b2 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -976,7 +976,7 @@ L.U.DataLayer = L.Evented.extend({ buildVersionsFieldset: function (container) { const appendVersion = function (data) { const date = new Date(parseInt(data.at, 10)) - const content = `${date.toLocaleDateString(L.locale)} (${ + const content = `${date.toLocaleString(L.lang)} (${ parseInt(data.size) / 1000 }Kb)` const el = L.DomUtil.create('div', 'umap-datalayer-version', versionsContainer)