You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sqlalchemy.exc.StatementError: (builtins.TypeError) SQLite DateTime type only accepts Python datetime and date objects as input.
i got this error about my DateTime function was not working
This is my code use it :
data = db.Column(db.DateTime(timezone=True), default=func.now())
Can anyone fix this ? I tried use from datetime import datetime but it didn't work.