lucasdotvin / laravel-soulbscription

A straightforward interface to handle subscriptions and feature consumption.
https://soulbscription.lucas.vin
MIT License
601 stars 84 forks source link

renew bug #43

Closed hugo-abdou closed 2 years ago

hugo-abdou commented 2 years ago

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 , `

hugo-abdou commented 2 years ago

i font the problem

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

pixsolution commented 1 year ago

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