Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Weather App (2015) Working with JSON Cleaning Up the Date and Time

Just wondering how to change the location of the JSON Timezone? I know that Forecast use the default "America/New_York".

So I am in a European country, the app is all working smoothly, but the time is one hr off, it is not accounting for Daylight Savings, any ideas people? Thanks In advance

Pier Yos
Pier Yos
15,721 Points

Well, The simple way is to find out the latitude and longitude of where you are and change them in your code manually. Or Make a class of the built-in GPS system in the device that gets those values automatically, which I know little to nothing about. Hope that helps!

1 Answer

Thanks for the advice mate, yeah I figured changing it manually, but would rather have it dynamic, the settings in the emulator are for my local so i'm not sure what the issue is. I am retrieving the info from forecast.io, however it is one hour ahead?