Index: gc_lang/fr/webext/panel/lex_editor.js ================================================================== --- gc_lang/fr/webext/panel/lex_editor.js +++ gc_lang/fr/webext/panel/lex_editor.js @@ -561,19 +561,10 @@ oBinaryDict.build(this.lFlexion); this.resetModif(); oWidgets.displayTable(this.lFlexion); oWidgets.updateData(); oWidgets.setDictData(this.lFlexion.length, this._getDate()); - }, - - _getDate: function () { - let oDate = new Date(); - let sMonth = (oDate.getMonth() + 1).toString().padStart(2, "0"); // Month+1: Because JS always sucks somehow. - let sDay = (oDate.getDay()).toString().padStart(2, "0"); - let sHours = (oDate.getHours()).toString().padStart(2, "0"); - let sMinutes = (oDate.getMinutes()).toString().padStart(2, "0"); - return `${oDate.getFullYear()}-${sMonth}-${sDay}, ${sHours}:${sMinutes}`; } } const oBinaryDict = { @@ -600,10 +591,11 @@ let lEntry = []; for (let s of this.oIBDAWG.select()) { lEntry.push(s.split("\t")); } oLexicon.set(lEntry); + oWidgets.setDictData(lEntry.length, oJSON.sDate); oWidgets.showElement("export_button"); }, build: function (lEntry) { oWidgets.showElement("build_progress");