We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b60530 commit 3ee8580Copy full SHA for 3ee8580
lib/windows/seekdialog.py
@@ -634,9 +634,16 @@ def updateCurrent(self, update_position_control=True):
634
self.setProperty('time.left', util.timeDisplay(self.duration - to))
635
636
_fmt = '%I:%M %p'
637
+ stripLeadingZero = True
638
if util.time_format_twentyfour:
639
_fmt = '%H:%M'
- self.setProperty('time.end', time.strftime(_fmt, time.localtime(time.time() + ((self.duration - to) / 1000))).lstrip('0'))
640
+ stripLeadingZero = False
641
+
642
+ val = time.strftime(_fmt, time.localtime(time.time() + ((self.duration - to) / 1000)))
643
+ if stripLeadingZero and val[0] == "0":
644
+ val = val[1:]
645
646
+ self.setProperty('time.end', val)
647
648
def doSeek(self, offset=None, settings_changed=False):
649
self._applyingSeek = True
0 commit comments