Showing
1 changed file
with
6 additions
and
1 deletions
| @@ -154,7 +154,12 @@ export struct LiveCountdownComponent { | @@ -154,7 +154,12 @@ export struct LiveCountdownComponent { | ||
| 154 | if (StringUtils.isNotEmpty(this.liveDetailsBean.liveInfo?.planStartTime)) { | 154 | if (StringUtils.isNotEmpty(this.liveDetailsBean.liveInfo?.planStartTime)) { |
| 155 | let playStartTimeTmp = this.liveDetailsBean.liveInfo?.planStartTime + '' | 155 | let playStartTimeTmp = this.liveDetailsBean.liveInfo?.planStartTime + '' |
| 156 | this.month = Number(playStartTimeTmp.substring(5, 7)).toString() | 156 | this.month = Number(playStartTimeTmp.substring(5, 7)).toString() |
| 157 | - this.day = playStartTimeTmp.substring(8, 10) | 157 | + let tempDay = playStartTimeTmp.substring(8, 10) |
| 158 | + if(tempDay.startsWith('0')){ | ||
| 159 | + this.day = playStartTimeTmp.substring(9, 10) | ||
| 160 | + }else{ | ||
| 161 | + this.day = tempDay | ||
| 162 | + } | ||
| 158 | this.hour = playStartTimeTmp.substring(11, 13) | 163 | this.hour = playStartTimeTmp.substring(11, 13) |
| 159 | this.minute = playStartTimeTmp.substring(14, 16) | 164 | this.minute = playStartTimeTmp.substring(14, 16) |
| 160 | } | 165 | } |
-
Please register or login to post a comment