Sfoglia il codice sorgente

时间格式问题

tangning 3 anni fa
parent
commit
77952756ba
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      pages/room/add.js

+ 2 - 2
pages/room/add.js

@@ -260,8 +260,8 @@ Page({
       anchorUserId, //主持人ID
       assistantUserId, //助理用户iD
 
-      effectiveStartTime: new Date(effectiveStartTime).getTime() ,
-      effectiveEndTime: new Date(effectiveEndTime).getTime() ,
+      effectiveStartTime: new Date(effectiveStartTime.replace(/-/g, "/")).getTime() ,
+      effectiveEndTime: new Date(effectiveEndTime.replace(/-/g, "/")).getTime() ,
     }, "POST", 'application/json')
 
     // debugger