Skip to content

Commit 50e0fc8

Browse files
authored
更新[趣头条],fix日期显示错误
1 parent 1c82ac0 commit 50e0fc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎qtt/qtt.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function play() {
134134
function tTime(timestamp) {
135135
const date = new Date(timestamp * 1000)
136136
const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
137-
const D = (date.getDate() + 1 < 10 ? '0' + (date.getDate() + 1) : date.getDate() + 1) + ' '
137+
const D = (date.getDate() + 1 < 10 ? '0' + date.getDate() : date.getDate() ) + ' '
138138
const h = date.getHours() + ':'
139139
const m = (date.getMinutes() + 1 < 10 ? '0' + (date.getMinutes() + 1) : date.getMinutes() + 1) + ''
140140
return M + D + h + m

0 commit comments

Comments
 (0)