|
@@ -117,11 +117,18 @@ function renderView() {
|
|
|
}
|
|
|
// 歷史紀錄
|
|
|
// const historicalrecord
|
|
|
- var historicalrecord=''
|
|
|
+ var historicalrecord='';
|
|
|
for (var i = 0; i < userInfo.video_info.length; i++) {
|
|
|
+ const timeStamp = userInfo.video_info[i].time_stamp;
|
|
|
+ const year = timeStamp.split(',')[0].split('/')[2];
|
|
|
+ const arr = timeStamp.split(',')[0].split('/');
|
|
|
+ arr.pop();
|
|
|
+ arr.unshift(year);
|
|
|
+ const fomatDate = [arr.join('/')];
|
|
|
+ const formatted = fomatDate.concat(timeStamp.split(',')[1]).join('');
|
|
|
historicalrecord+='\
|
|
|
<tr>\
|
|
|
- <td class="px-0">'+userInfo.video_info[i].time_stamp+'</td>\
|
|
|
+ <td class="px-0">'+formatted+'</td>\
|
|
|
<td class="px-0">'+userInfo.video_info[i].title+'</td>\
|
|
|
<td class="px-0 w-25">'+userInfo.video_info[i].duration+'</td>\
|
|
|
</tr>`\
|