Skip to content

Commit ee2520d

Browse files
committed
Merge branch 'master' of https://github.com/chavyleung/scripts
2 parents 1dee8be + 50e0fc8 commit ee2520d

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
@@ -135,7 +135,7 @@ function play() {
135135
function tTime(timestamp) {
136136
const date = new Date(timestamp * 1000)
137137
const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
138-
const D = (date.getDate() + 1 < 10 ? '0' + (date.getDate() + 1) : date.getDate() + 1) + ' '
138+
const D = (date.getDate() + 1 < 10 ? '0' + date.getDate() : date.getDate() ) + ' '
139139
const h = date.getHours() + ':'
140140
const m = (date.getMinutes() + 1 < 10 ? '0' + (date.getMinutes() + 1) : date.getMinutes() + 1) + ''
141141
return M + D + h + m

0 commit comments

Comments
 (0)