Steps to reproduce:
- Create a new host e.g. "A"
- Create the first item with "Trend storage period" 366d
- Create the second item for host "A" with "History storage period" 360d and "Trend storage period" 360d
- Open host "A" item page and check the History and Trends filters
Expected: 365d = 1y. 360d should be converted correctly e.g. 360d = 11m 26d.