Bsitu has uploaded a new change for review.
https://gerrit.wikimedia.org/r/155828
Change subject: Revert "Make timestamp in consistent format after loaded from
database"
......................................................................
Revert "Make timestamp in consistent format after loaded from database"
It should handle NULL
This reverts commit 31a986bebdb286a100192a6fa779dc48fae3bab7.
Change-Id: I202a7c6f8deaf0b6bbf3af1981f4f25077e916db
---
M model/Notification.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo
refs/changes/28/155828/1
diff --git a/model/Notification.php b/model/Notification.php
index 1f4a0f1..24aad9d 100644
--- a/model/Notification.php
+++ b/model/Notification.php
@@ -185,8 +185,8 @@
$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;
--
To view, visit https://gerrit.wikimedia.org/r/155828
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I202a7c6f8deaf0b6bbf3af1981f4f25077e916db
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Bsitu <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits