summaryrefslogtreecommitdiff
path: root/app/Date/CalendarDate.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Date/CalendarDate.php')
-rw-r--r--app/Date/CalendarDate.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Date/CalendarDate.php b/app/Date/CalendarDate.php
index 3b71b673cb..0131533793 100644
--- a/app/Date/CalendarDate.php
+++ b/app/Date/CalendarDate.php
@@ -15,6 +15,7 @@
*/
namespace Fisharebest\Webtrees\Date;
+use DebugBar\DebugBar;
use FishareBest\ExtCalendar\CalendarInterface;
use FishareBest\ExtCalendar\JewishCalendar;
use Fisharebest\Webtrees\I18N;
@@ -534,6 +535,8 @@ class CalendarDate {
try {
return $this->calendar->daysInMonth($this->y, $this->m);
} catch (\InvalidArgumentException $ex) {
+ DebugBar::addThrowable($ex);
+
// calendar.php calls this with "DD MMM" dates, for which we cannot calculate
// the length of a month. Should we validate this before calling this function?
return 0;