Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8585785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:09:10+00:00 2026-06-11T22:09:10+00:00

I have some issues with django’s datetime. from datetime import datetime d = datetime(2000,

  • 0

I have some issues with django’s datetime.

from datetime import datetime
d = datetime(2000, 1, 1, <what do i put here, nothing works>) 
# making it aware requires a 4th arg according to the docs, but no matter what
# i enter for that arg, it keeps giving me an error that  tzinfo argument 
must be None or of a tzinfo subclass

I can’t find anywhere the available options for possible tzinfo parameters that can be passed… and everything online has the pytz module, which isn’t on my computer. If it’s possible, how can i do this without using pytz?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:09:12+00:00Added an answer on June 11, 2026 at 10:09 pm

    Never mind, I was just angry at myself for spending so much time on something like this so I wasn’t thinking straight, replace(tzinfo = timezone.utc) with an import for timezone does the trick

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I seems to have some issues in order to compile gproc from uwiger. I
I'm trying to track down some performance issues I have had with Django. There
I have been having some issues with django-haystack and need some help. I run
I have some strange issue with querying SQL Server from django. When I query
I'm having some issues setting up django-mssql on Win Server 2008 R2. I have
I am making my first Django application and am running into some AJAX issues.
I have some issue. I import django User model, create new user then trying
I have some issues in setting the classpath for the a project for which
I have some issues with a PHP file that is not working properly. The
I have some issues with my EJB 3 timer where it is launched more

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.