Page MenuHomePhabricator

Unknown or bad timezone exception
Closed, DuplicatePublic

Description

Spotted in production logs. It seems to not like the 00:00.

2015-02-10 15:34:18 mw1133 metawiki: [3328ffe2] /w/api.php?action=query&format=json&meta=notifications&notsections=alert%7Cmessage&notgroupbysection=1&notmessageunreadfirst=1&notformat=flyout&notlimit=25&notprop=index%7Clist%7Ccount&uselang=en-gb&_=1423582443065   Exception from line  of : DateTimeZone::__construct(): Unknown or bad timezone (+00:00)
#0 /srv/mediawiki/php-1.25wmf15/extensions/Echo/model/Event.php(225): DateTime->__wakeup()
#1 /srv/mediawiki/php-1.25wmf15/extensions/Echo/model/Event.php(285): EchoEvent->loadFromRow()
#2 /srv/mediawiki/php-1.25wmf15/extensions/Echo/model/Notification.php(184): EchoEvent::newFromRow()
#3 /srv/mediawiki/php-1.25wmf15/extensions/Echo/includes/mapper/NotificationMapper.php(183): EchoNotification::newFromRow()
#4 /srv/mediawiki/php-1.25wmf15/extensions/Echo/api/ApiEchoNotifications.php(143): EchoNotificationMapper->fetchByUser()
#5 /srv/mediawiki/php-1.25wmf15/extensions/Echo/api/ApiEchoNotifications.php(96): ApiEchoNotifications->getPropList()
#6 /srv/mediawiki/php-1.25wmf15/extensions/Echo/api/ApiEchoNotifications.php(31): ApiEchoNotifications->getSectionPropList()
#7 /srv/mediawiki/php-1.25wmf15/includes/api/ApiQuery.php(297): ApiEchoNotifications->execute()
#8 /srv/mediawiki/php-1.25wmf15/includes/api/ApiMain.php(1024): ApiQuery->execute()
#9 /srv/mediawiki/php-1.25wmf15/includes/api/ApiMain.php(393): ApiMain->executeAction()
#10 /srv/mediawiki/php-1.25wmf15/includes/api/ApiMain.php(364): ApiMain->executeActionWithErrorHandling()
#11 /srv/mediawiki/php-1.25wmf15/api.php(84): ApiMain->execute()
#12 /srv/mediawiki/w/api.php(3): include()
#13 {main}

Event Timeline

demon raised the priority of this task from to Needs Triage.
demon updated the task description. (Show Details)
demon added a project: Notifications.
demon added a subscriber: demon.

Some of these may be old. However, we want to fix all of them by iterating the db in a maint script.