Skip to content

solved attribute error 'datetime.date' object has no attribute#2

Open
imlegend19 wants to merge 1 commit into101Loop:masterfrom
imlegend19:patch-1
Open

solved attribute error 'datetime.date' object has no attribute#2
imlegend19 wants to merge 1 commit into101Loop:masterfrom
imlegend19:patch-1

Conversation

@imlegend19
Copy link
Copy Markdown
Member

The api does not allow to create order. It throws AttributeError at /order/order/add/
Fixed by changing datetime.date.now() to django.utils.timezone.now()

…ffset'`

The api does not allow to create order. It throws : 
# AttributeError at /order/order/add/
# 'datetime.date' object has no attribute 'utcoffset'

Fixed by changing datetime.date.now() to django.utils.timezone.now()
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

Successfully merging this pull request may close these issues.

1 participant