update a model with DateTime
field using pendulum.now()
#755
Labels
bug
An existing feature is not working as intended
DateTime
field using pendulum.now()
#755
Describe the bug
seems
pendulum.now()
doesn't transform to.to_datetime_string()
while updating a modelusing
pendulum.now().to_datetime_string()
will fix the bugTo Reproduce
doesn't work giving this error
QueryException: Error binding parameter 0 - probably unsupported type.
.my model has
__dates__ = ["completed_at"]
DB field type is
datetime
Expected behavior
it should cast
pendulum.now()
to datetime stringWhat database are you using?
The text was updated successfully, but these errors were encountered: