Skip to content

Commit

Permalink
fix #2202
Browse files Browse the repository at this point in the history
  • Loading branch information
vernesong committed Mar 31, 2022
1 parent 1126f43 commit e728dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luci-app-openclash/luasrc/view/openclash/log.htm
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
var regex = /"([^"]*)"/g;
var res = regex.exec(v);
if (res) {
var dt = new Date(res[1].match(/\+08\:00/)? res[1].replace("+08:00", "Z") : res[1]);
var dt = new Date(res[1]);
}
if (dt && dt != "Invalid Date"){
cstrt[cn]=dt.getFullYear()+"-"+p(dt.getMonth()+1)+"-"+p(dt.getDate())+" "+p(dt.getHours())+":"+p(dt.getMinutes())+":"+p(dt.getSeconds())+v.substring(res[1].length + 7);
Expand Down

0 comments on commit e728dbd

Please sign in to comment.