apply patch
This commit is contained in:
@@ -46,7 +46,7 @@ Component({
|
||||
var e = this.data.endTime;
|
||||
// 将秒时间戳转换为毫秒时间戳
|
||||
var date = new Date(e * 1000);
|
||||
|
||||
|
||||
// 格式化为“YYYY年MM月DD日”
|
||||
var year = date.getFullYear();
|
||||
var month = String(date.getMonth() + 1).padStart(2, "0"); // 月份从 0 开始,需要 +1
|
||||
|
||||
Reference in New Issue
Block a user