1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 12:51:24 +01:00

HH not supported

This commit is contained in:
Harald Barth 2022-06-21 19:46:59 +02:00
parent b1f5e9f48c
commit a80b16acba

View File

@ -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