fix time comparison in getWeather