Display time in datalayer versions list

fix #852
This commit is contained in:
Yohan Boniface 2023-07-04 10:19:05 +02:00
parent 6429e10110
commit 31bf449e73

View file

@ -976,7 +976,7 @@ L.U.DataLayer = L.Evented.extend({
buildVersionsFieldset: function (container) { buildVersionsFieldset: function (container) {
const appendVersion = function (data) { const appendVersion = function (data) {
const date = new Date(parseInt(data.at, 10)) const date = new Date(parseInt(data.at, 10))
const content = `${date.toLocaleDateString(L.locale)} (${ const content = `${date.toLocaleString(L.lang)} (${
parseInt(data.size) / 1000 parseInt(data.size) / 1000
}Kb)` }Kb)`
const el = L.DomUtil.create('div', 'umap-datalayer-version', versionsContainer) const el = L.DomUtil.create('div', 'umap-datalayer-version', versionsContainer)