Commit fc144a45 authored by panpp's avatar panpp

修复了ms.util的时间格式化默认格式问题

parent c4bcf2b9
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
fmt: function(de, fmt) { fmt: function(de, fmt) {
var date = new Date(typeof de == "string"?de.replace(/-/g, "/"):de); var date = new Date(typeof de == "string"?de.replace(/-/g, "/"):de);
if (!fmt) { if (!fmt) {
fmt = "yyyy-mm-dd"; fmt = "yyyy-MM-dd";
} }
var o = { var o = {
"M+": date.getMonth() + 1, //月份 "M+": date.getMonth() + 1, //月份
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment