MDL-49561 core_calendar: Fix ical export for events with no duration
This commit is contained in:
committed by
Mark Nelson
parent
1dabedeedf
commit
2be327dca9
@@ -20,6 +20,14 @@ class Bennu {
|
||||
return gmstrftime('%Y%m%dT%H%M%SZ', $t);
|
||||
}
|
||||
|
||||
static function timestamp_to_date($t = NULL) {
|
||||
if($t === NULL) {
|
||||
$t = time();
|
||||
}
|
||||
return strftime('%Y%m%d', $t);
|
||||
}
|
||||
|
||||
|
||||
static function generate_guid() {
|
||||
// Implemented as per the Network Working Group draft on UUIDs and GUIDs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user