Merge pull request #1195 from umap-project/datetime-version
Display time in datalayer versions list
This commit is contained in:
commit
76f69d3172
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue