Index: graphspell-js/dawg.js ================================================================== --- graphspell-js/dawg.js +++ graphspell-js/dawg.js @@ -418,11 +418,12 @@ let oDate = new Date(); let sMonth = (oDate.getMonth() + 1).toString().padStart(2, "0"); // Month+1: Because JS always sucks somehow. let sDay = (oDate.getDate()).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}`; + let sSeconds = (oDate.getSeconds()).toString().padStart(2, "0"); + return `${oDate.getFullYear()}-${sMonth}-${sDay} ${sHours}:${sMinutes}:${sSeconds}`; } } const oNodeCounter = { Index: graphspell/dawg.py ================================================================== --- graphspell/dawg.py +++ graphspell/dawg.py @@ -558,11 +558,11 @@ hDst.write(oNode.convToBytes3(self.nBytesArc, self.nBytesNodeAddress, self.nBytesOffset)) if bDebug: self._writeNodes(sPathFile, nCompressionMethod) def _getDate (self): - return time.strftime("%Y.%m.%d, %H:%M") + return time.strftime("%Y-%m-%d %H:%M:%S") def _writeNodes (self, sPathFile, nCompressionMethod): "for debugging only" print(" > Write nodes") with open(sPathFile+".nodes."+str(nCompressionMethod)+".txt", 'w', encoding='utf-8', newline="\n") as hDst: