Skip to content

Commit

Permalink
Remove leading zero for days
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBim89 authored Sep 7, 2023
1 parent af9981d commit ed6c697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function updateLabelDiffTime() {
if (disappearsAt.time < disappearsAt.now) {
timestring = 'expired'
} else if (days > 0) {
timestring = lpad(days, 2, 0) + 'd' + lpad(hours, 2, 0) + 'h' + lpad(minutes, 2, 0) + 'm'
timestring = days + 'd' + lpad(hours, 2, 0) + 'h' + lpad(minutes, 2, 0) + 'm'
} else if (hours > 0) {
timestring = lpad(hours, 2, 0) + 'h' + lpad(minutes, 2, 0) + 'm' + lpad(seconds, 2, 0) + 's'
} else {
Expand Down

0 comments on commit ed6c697

Please sign in to comment.