JS的(new Date()).toLocaleString,系统设置为24小时,仍然显示为12小时。

var time = new Date().toLocaleString('chinese',{hour12:false});

原文地址:https://www.cnblogs.com/apolloren/p/12440932.html