From 8ffc7eb6b61a70a8f13bcc3dcf0f728ea301fa44 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 23 Feb 2015 17:49:53 +0100 Subject: [PATCH] Use a valid timezone name when no timezone is set --- lib/backgroundjob/emailnotification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/backgroundjob/emailnotification.php b/lib/backgroundjob/emailnotification.php index 11649c3f..830502d1 100644 --- a/lib/backgroundjob/emailnotification.php +++ b/lib/backgroundjob/emailnotification.php @@ -101,7 +101,7 @@ class EmailNotification extends \OC\BackgroundJob\TimedJob { } $language = (isset($userLanguages[$user])) ? $userLanguages[$user] : $default_lang; - $timezone = (isset($userTimezones[$user])) ? $userTimezones[$user] : ''; + $timezone = (isset($userTimezones[$user])) ? $userTimezones[$user] : 'UTC'; $this->mqHandler->sendEmailToUser($user, $userEmails[$user], $language, $timezone, $data); }