Changing truck graph date is not working properly