lucasdotvin/laravel-soulbscription

renew bug

hugo-abdou opened this issue · 2 comments

when I call the renew() method I get this error
the same problem when I call subscribeTo('plan-name') I'm forced to pass expiration date or it will give the error

"message": "SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '2122-11-24 10:35:50' for column 'expired_at' at row 1 (SQL: updatesubscriptionssetexpired_at= 2122-11-24 10:35:50,subscriptions.updated_at= 2022-10-24 10:45:16 whereid` = 2)"

Capture d’écran 2022-10-24 114900
,
`

i font the problem

the problem is the timestamp limitation you need to change it to dateTime

Hello @hugo-abdou I'm presenting this issue, how do you solved it? where did you changed that? on susbscription migration?