From a80b16acba66194475b2923479f8f43fe1170692 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Tue, 21 Jun 2022 19:46:59 +0200 Subject: [PATCH] HH not supported --- log2lrc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log2lrc.py b/log2lrc.py index 1f24338..046cb8f 100755 --- a/log2lrc.py +++ b/log2lrc.py @@ -34,7 +34,7 @@ def convert(timestr): times=timestr.split('.',1) # remove fractions of second timestamp_obj=datetime.datetime.strptime(times[0],'%H:%M:%S') timestamp_obj=timestamp_obj-timediff # calculate offset - timestr='{0:%H:%M:%S}'.format(timestamp_obj) + timestr='{0:%M:%S}'.format(timestamp_obj) timestr='%s.%s' % (timestr, times[1][0:2]) # add fractions of second, 2 digits return timestr