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 trialManuel Avila
2,241 PointsCreate a variable named moscow that holds a datetime.timezone object at +4 hours.
import datetime moscow = datetime.timezone(datetime.timedelta(hours=5))
not sure why it wont pass
import datetime
moscow = datetime.timezone(datetime.timedelta(hours=5))
3 Answers
Greg Kaleka
39,021 PointsHey Manuel,
You're using 5 when the challenge states the offset should be 4.
Cheers
-Greg
Manuel Avila
2,241 PointsThank you, simple typo was ruining my day
Greg Kaleka
39,021 PointsHah yep, they tend to do that!
MARCOS TIMANA
21,414 PointsI made the same typo.
Mahdi Jafari
17,887 PointsThis is how I did it
import datetime
moscow = datetime.timezone(datetime.timedelta(hours=4))