我试过这个
db_session.query(PaymentsMade).filter(func.strftime('%B', PaymentsMade.created_at) == "August").all()
但我收到了这个错误
(ProgrammingError) function strftime(unknown, timestamp without time zone) does not exist
LINE 3: WHERE strftime('%B', paymentsmade.created_at) = 'August'
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
我正在保存日期created_at = datetime.utcnow()