diff options
Diffstat (limited to 'app/php/controls/EventList.php')
-rw-r--r-- | app/php/controls/EventList.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/php/controls/EventList.php b/app/php/controls/EventList.php index 325641b..d40e000 100644 --- a/app/php/controls/EventList.php +++ b/app/php/controls/EventList.php @@ -5,7 +5,10 @@ class EventList extends UrlBasedCalendarControl { private function _setDate($key, $date) { $datetime = new DateTime($date, new DateTimeZone('UTC')); if (!$datetime) { - throw new TInvalidDataValueException('Invalid date string: ' . $date); + throw new TInvalidDataValueException( + Prado::localize('Invalid date string: {date}', + ['date' => $date]) + ); } $this->setViewState($key, $datetime); } |