Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong timezone in unit tests #63

Open
821-N opened this issue Jan 28, 2020 · 2 comments
Open

wrong timezone in unit tests #63

821-N opened this issue Jan 28, 2020 · 2 comments

Comments

@821-N
Copy link

821-N commented Jan 28, 2020

base model uses datetime.utcnow() (current time in UTC):

self.created_at = datetime.utcnow()

but the unit tests use datetime.now() (current time in local timezone):

so the test will fail if you're not in that timezone

@0100-0100
Copy link

The problem is still present, I have fixed it on my own v3 version with my peer Daniel Cortes

@AlWaleedMusa
Copy link

i think its there to test our debug abilities, i like that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants