aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-09-01 23:20:21 +0200
committerJonas Smedegaard <dr@jones.dk>2024-09-01 23:20:21 +0200
commit349c8f5fa479176bd48a748de608adc33123fbc3 (patch)
tree0b1e881efffc5100c785c3675413f38e98240279
parentc13bd2dd7b26bd47d6848700ba7d53f294865798 (diff)
add O::G::Event methods start_date and end_date
-rw-r--r--lib/Object/Groupware/Event.pm8
1 files 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 }