zhangweicheng 5 лет назад
Родитель
Сommit
0fc42c6021
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      web/building_saas/standard_interface/export/base.js

+ 5 - 1
web/building_saas/standard_interface/export/base.js

@@ -290,12 +290,16 @@ const INTERFACE_EXPORT_BASE = (() => {
   }
 
   //获取当前时间,格式YYYY-MM-DD HH:mm
-  function getNowFormatTime() {
+  function getNowFormatTime(T) {
     var nowDate = new Date();
     var colon = ":";
     var h = nowDate.getHours();
     var m = nowDate.getMinutes();
     var s = nowDate.getSeconds();
+    if (T) {
+      return getNowFormatDay(nowDate) + "T" + completeDate(h) + colon + completeDate(m)+colon+completeDate(s);
+    }
+
     //补全0,并拼接
     return getNowFormatDay(nowDate) + " " + completeDate(h) + colon + completeDate(m);
   }