Line 927 of Components/EpgListGrid.py looks like this
Code:
fnum = float(timeEpoch)/float(timeSteps)
incWidth = int(eventRect.width() / fnum)
timeStepsCalc = timeSteps * SECS_IN_MIN
nowTime = localtime(time())
begTime = localtime(timeBase)
serviceWidth = serviceRect.width()
if nowTime.tm_year == begTime.tm_year and nowTime.tm_yday == begTime.tm_yday:
datestr = _("Today")
else:
if serviceWidth > [COLOR="#FF0000"]179[/COLOR]:
dateFormat = config.usage.date.daylong.value
elif serviceWidth > [COLOR="#FF0000"]129[/COLOR]:
dateFormat = config.usage.date.dayshort.value
elif serviceWidth > [COLOR="#FF0000"]79[/COLOR]:
dateFormat = config.usage.date.daysmall.value
else:
dateFormat = "%a"
datestr = strftime(dateFormat, begTime)
I've got Service width in the grid epg set to
225, and the date "Fri 9 Apr 2020" doesn't fit.
If I mess with EpgListGrid.py and force the date to be "Fri 9 Apr", it fits ok....
Code:
fnum = float(timeEpoch)/float(timeSteps)
incWidth = int(eventRect.width() / fnum)
timeStepsCalc = timeSteps * SECS_IN_MIN
nowTime = localtime(time())
begTime = localtime(timeBase)
serviceWidth = serviceRect.width()
if nowTime.tm_year == begTime.tm_year and nowTime.tm_yday == begTime.tm_yday:
datestr = _("Today")
else:
if serviceWidth > [COLOR="#FF0000"]999[/COLOR]:
dateFormat = config.usage.date.daylong.value
elif serviceWidth > [COLOR="#FF0000"]2[/COLOR]:
dateFormat = config.usage.date.dayshort.value
elif serviceWidth > [COLOR="#FF0000"]1[/COLOR]:
dateFormat = config.usage.date.daysmall.value
else:
dateFormat = "%a"
datestr = strftime(dateFormat, begTime)
EDIT: If I make the Timeline font size small enough I should be able to see when the date format changes for different service widths.
Service width of 173 changes the date format (loses the year), Timeline font size -2.