Index: graphspell-js/dawg.js ================================================================== --- graphspell-js/dawg.js +++ graphspell-js/dawg.js @@ -398,11 +398,11 @@ } _getDate () { 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 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}`; } } Index: graphspell/dawg.py ================================================================== --- graphspell/dawg.py +++ graphspell/dawg.py @@ -502,11 +502,11 @@ for oNode in self.lSortedNodes: hDst.write(oNode.convToBytes3(self.nBytesArc, self.nBytesNodeAddress, self.nBytesOffset)) hDst.close() def _getDate (self): - return time.strftime("%Y.%m.%d %H:%M") + return time.strftime("%Y.%m.%d, %H:%M") 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: Index: graphspell/ibdawg.py ================================================================== --- graphspell/ibdawg.py +++ graphspell/ibdawg.py @@ -191,11 +191,11 @@ "sHeader": "/pyfsa/", "sLangCode": self.sLangCode, "sLangName": self.sLangName, "sDicName": self.sDicName, "sFileName": self.sFileName, - "sDate": time.strftime("%Y.%m.%d %H:%M"), + "sDate": self.sDate, "nEntry": self.nEntry, "nChar": self.nChar, "nAff": self.nAff, "nTag": self.nTag, "cStemming": self.cStemming,