🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • GCPL Treehouse1
    GCPL Treehouse1
    6,054 Points

    Trouble with pytz Format Challenge not accepting Timezone

    Posted August 14, 2021 3:56pm by GCPL Treehouse1
    GCPL Treehouse1
    6,054 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    1 Answer

  • Jake Williams
    Jake Williams
    2,900 Points

    pytzstring.py

    Posted June 1, 2021 11:03pm by Jake Williams
    Jake Williams
    2,900 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    1 Answer

  • Aizah Sadiq
    Aizah Sadiq
    2,435 Points

    pytz format challenge task 2

    Posted August 27, 2020 8:49pm by Aizah Sadiq
    Aizah Sadiq
    2,435 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    2 Answers

  • Aizah Sadiq
    Aizah Sadiq
    2,435 Points

    Challenge

    Posted August 26, 2020 12:33am by Aizah Sadiq
    Aizah Sadiq
    2,435 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    1 Answer

  • Eldin Guzin
    Eldin Guzin
    6,010 Points

    pytz format challenge 2/2

    Posted July 2, 2020 7:41am by Eldin Guzin
    Eldin Guzin
    6,010 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    0 Answers

  • Damien Blasko
    Damien Blasko
    8,519 Points

    How can "local" be in the wrong timezone?

    Posted June 11, 2020 12:40am by Damien Blasko
    Damien Blasko
    8,519 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    1 Answer

  • Adam Vasik
    Adam Vasik
    11,702 Points

    Please help probably same mistake as the last time but can't find it :(

    Posted May 25, 2020 3:49pm by Adam Vasik
    Adam Vasik
    11,702 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    1 Answer

  • Ahmed Abdelhay
    Ahmed Abdelhay
    6,025 Points

    i don't know where is the problem?

    Posted April 19, 2019 2:42pm by Ahmed Abdelhay
    Ahmed Abdelhay
    6,025 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    1 Answer

  • Jason Smith
    Jason Smith
    8,668 Points

    this is really vexing, what am i doing wrong?

    Posted February 13, 2019 12:24am by Jason Smith
    Jason Smith
    8,668 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    2 Answers

  • Heidi Ulrich
    Heidi Ulrich
    4,624 Points

    Change datetime to Pacific timezone fails

    Posted September 6, 2017 10:35am by Heidi Ulrich
    Heidi Ulrich
    4,624 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    1 Answer

  • peter xiao
    peter xiao
    2,626 Points

    Bummer! name 'pytz_string' is not defined

    Posted June 27, 2017 9:09pm by peter xiao
    peter xiao
    2,626 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    1 Answer

  • hari shankar
    hari shankar
    5,100 Points

    pytz format

    Posted May 8, 2017 12:03pm by hari shankar
    hari shankar
    5,100 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    1 Answer

  • MUZ140259 Juliana Kofi
    MUZ140259 Juliana Kofi
    9,532 Points

    Pytz

    Posted June 1, 2016 9:50pm by MUZ140259 Juliana Kofi
    MUZ140259 Juliana Kofi
    9,532 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    1 Answer

  • Michael Steinman
    Michael Steinman
    11,012 Points

    install pytz

    Posted April 30, 2016 8:30pm by Michael Steinman
    Michael Steinman
    11,012 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    7 Answers

  • Loh Pin Hua
    Loh Pin Hua
    3,160 Points

    It just doesn't make sense!

    Posted March 7, 2016 1:18pm by Loh Pin Hua
    Loh Pin Hua
    3,160 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    3 Answers

  • Andrea Campos
    Andrea Campos
    4,743 Points

    What's wrong with my code?

    Posted October 18, 2015 8:50pm by Andrea Campos
    Andrea Campos
    4,743 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    1 Answer

  • Carina De Jager
    Carina De Jager
    1,779 Points

    Pytz

    Posted August 25, 2015 3:58am by Carina De Jager
    Carina De Jager
    1,779 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    1 Answer

  • Mar Bocatcat
    Mar Bocatcat
    7,405 Points

    Dates and Times in Python :(

    Posted August 15, 2015 2:37am by Mar Bocatcat
    Mar Bocatcat
    7,405 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    2 Answers

  • Ronnie Barua
    Ronnie Barua
    17,665 Points

    What am I doing wrong with Starter is a naive datetime?

    Posted January 15, 2015 4:22pm by Ronnie Barua
    Ronnie Barua
    17,665 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    4 Answers

  • Charles Harpke
    Charles Harpke
    33,986 Points

    starter is a naive datetime. Use pytz to make it a "US/Pacific" datetime instead and assign this converted datetime...

    Posted December 20, 2014 8:42pm by Charles Harpke
    Charles Harpke
    33,986 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    10 Answers

  • Chris Freeman
    MOD
    Chris Freeman
    Treehouse Moderator 68,460 Points

    Can you provide an example a formated local string for this pytz format challenge?

    Posted November 16, 2014 11:17pm by Chris Freeman
    Chris Freeman
    Treehouse Moderator 68,460 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • pytz Format

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.