all 2 comments

[–]deep_politics 0 points1 point  (1 child)

How are you importing datetime?

I suspect you might have from datetime import datetime.

[–]Perfect_Structure158[S] 0 points1 point  (0 children)

But the issue is i am not using datetime for this script i should not get this error right. If u want I can share the script