fixes #3852. The function that calculates the date format for the x-axis on a panel takes the panel width into account and can be wrong for certain date ranges if the panel is too narrow. E.g. can show dates in format %m/%d %H:%M when it should show it as %H:%M