From 349c8f5fa479176bd48a748de608adc33123fbc3 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 1 Sep 2024 23:20:21 +0200 Subject: add O::G::Event methods start_date and end_date --- lib/Object/Groupware/Event.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Object/Groupware/Event.pm b/lib/Object/Groupware/Event.pm index 7384176..1e1df87 100644 --- a/lib/Object/Groupware/Event.pm +++ b/lib/Object/Groupware/Event.pm @@ -68,10 +68,14 @@ ADJUST { } } - $log->tracef( "Object %s contents:\n%s", __CLASS__, - decode_utf8 $entry->as_string ); + $log->tracef( + "Object %s contents:\n%s", __CLASS__, + decode_utf8 $entry->as_string + ); } +method start_date { $start->strftime('%F') } +method end_date { $end->strftime('%F') } method attendees { !!@attendees ? [@attendees] : undef } method attachments { !!@attachments ? [@attachments] : undef } -- cgit v1.2.3