This fixes the irregular test failures that occur at very specific times of day. This was caused by two things - incorrect conversion to UTC and requesting a forecast using a UTC time rather than a local time.
This would result in the Skill failing: "I'm sorry. I can't access weather forecasts right now."
Type of PR
[x] Bugfix
[ ] Feature implementation
[ ] Refactor of code (without functional changes)
[ ] Documentation improvements
[ ] Test improvements
Testing
Existing tests are failing for this already but as it's a timezone issue it depends on your devices location. Set your device location to somewhere that is a day in the "future" like Wellington, New Zealand. Then request a simple "weather".
Description
This fixes the irregular test failures that occur at very specific times of day. This was caused by two things - incorrect conversion to UTC and requesting a forecast using a UTC time rather than a local time.
This would result in the Skill failing: "I'm sorry. I can't access weather forecasts right now."
Type of PR
Testing
Existing tests are failing for this already but as it's a timezone issue it depends on your devices location. Set your device location to somewhere that is a day in the "future" like Wellington, New Zealand. Then request a simple "weather".