fixed problem with date without timezone offset in the chart
fix logic of request data for days
after code analysis and a bit fo refactoring