Samuell1 / revisions-plugin

Revisions allows to extend any model with Revisionable trait with more features and easy to use.
https://octobercms.com/plugin/samuell-revisions
MIT License
9 stars 7 forks source link

Method locale does not exist. #21

Closed anik1ng closed 3 years ago

anik1ng commented 3 years ago

Hi! I got error :(

Screenshot 2020-11-16 at 18 28 02

Problem in view file _revisionhistory.htm at string 44:

<?= $record->created_at->locale(Lang::getLocale())->isoFormat('LLL') ?>

rubenvanerk commented 3 years ago

Hi! I don't have this problem. What version of Carbon are you using? I think you have version 1 installed while this method requires version 2.

anik1ng commented 3 years ago

Hi! I don't have this problem. What version of Carbon are you using? I think you have version 1 installed while this method requires version 2.

I use standart installation October version 469

Samuell1 commented 3 years ago

@rubenvanerk Hey, its there a way to make it backwards compatible for now till 1.1.X OCMS isnt released?