diff --git a/Plugin.php b/Plugin.php index b802d7e..daeca1f 100644 --- a/Plugin.php +++ b/Plugin.php @@ -3,6 +3,7 @@ namespace Zoomyboy\Event; use Backend; +use Carbon\Carbon; use System\Classes\PluginBase; /** @@ -106,6 +107,17 @@ class Plugin extends PluginBase ]; } + public function registerMarkupTags(): array + { + return [ + 'filters' => [ + 'date' => function ($date) { + return Carbon::parse($date)->format('d.m.Y'); + }, + ], + ]; + } + public function registerMailTemplates() { return [