diff --git a/CHANGELOG.md b/CHANGELOG.md index d4e6d57..7e110ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 1.2.0 - 2024-12-06 +- Support for Craft CMS 5.x + ## 1.1.0 - 2022-06-09 - Support for Craft CMS 4.x diff --git a/README.md b/README.md index af36f44..f85c787 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # TimeAgo plugin for Craft CMS 4.x -Displays time ago for a given timestamp value within a Craftcms3 Twig template. +Displays time ago for a given timestamp value within a Craft CMS Twig template. ## Requirements -This plugin requires Craft CMS 4.0.0 or later. +This plugin requires Craft CMS 5.0.0 or later. ## Installation diff --git a/composer.json b/composer.json index 7e26ab4..1abe4dd 100644 --- a/composer.json +++ b/composer.json @@ -1,8 +1,8 @@ { "name": "mdxdave/time-ago", - "description": "Displays time ago for timestamp", + "description": "Displays the time has been past since a given date", "type": "craft-plugin", - "version": "1.1.0", + "version": "1.2.0", "keywords": [ "craft", "cms", @@ -22,7 +22,7 @@ } ], "require": { - "craftcms/cms": "^4.0.0", + "craftcms/cms": "^4.0.0|^5.0.0", "nesbot/carbon": "^2.0.0" }, "config": { @@ -41,7 +41,7 @@ "extra": { "name": "TimeAgo", "handle": "time-ago", - "schemaVersion": "1.1.0", + "schemaVersion": "1.2.0", "hasCpSettings": false, "hasCpSection": false, "changelogUrl": "https://raw.githubusercontent.com/mdxdave/time-ago/master/CHANGELOG.md", diff --git a/src/TimeAgo.php b/src/TimeAgo.php index a7d4758..79c2272 100644 --- a/src/TimeAgo.php +++ b/src/TimeAgo.php @@ -1,11 +1,11 @@ diffForHumans(); }