Revert "Make timestamp in consistent format after loaded from database"

It should handle NULL

This reverts commit 31a986bebd.

Change-Id: I202a7c6f8deaf0b6bbf3af1981f4f25077e916db
This commit is contained in:
Bsitu 2014-08-22 21:50:34 +00:00
parent 31a986bebd
commit 271d192f69

View file

@ -185,8 +185,8 @@ class EchoNotification extends EchoAbstractEntity {
$notification->targetPage = EchoTargetPage::newFromRow( $row );
}
$notification->user = User::newFromId( $row->notification_user );
$notification->timestamp = wfTimestamp( TS_MW, $row->notification_timestamp );
$notification->readTimestamp = wfTimestamp( TS_MW, $row->notification_read_timestamp );
$notification->timestamp = $row->notification_timestamp;
$notification->readTimestamp = $row->notification_read_timestamp;
$notification->bundleBase = $row->notification_bundle_base;
$notification->bundleHash = $row->notification_bundle_hash;
$notification->bundleDisplayHash = $row->notification_bundle_display_hash;