Explorar el Código

log download:fix time error

rufengsuixing hace 5 años
padre
commit
079f8ea7c9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      luasrc/view/AdGuardHome/log.htm

+ 1 - 1
luasrc/view/AdGuardHome/log.htm

@@ -20,7 +20,7 @@ function createAndDownloadFile(fileName, content) {
 function download_log(){
 	var lv = document.getElementById('cbid.logview.1.conf');
 	var dt = new Date();
-	var timestamp = (dt.getMonth()+1)+"-"+dt.getDay()+"-"+dt.getHours()+"_"+dt.getMinutes();
+	var timestamp = (dt.getMonth()+1)+"-"+dt.getDate()+"-"+dt.getHours()+"_"+dt.getMinutes();
 	createAndDownloadFile("AdGuardHome"+timestamp+".log",lv.innerHTML)
 	return
 }