Skip to content

Commit 2066854

Browse files
committed
Fix past pushes page
1 parent 43fba32 commit 2066854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dashboard/Push/PushIndex.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ let formatStatus = (status) => {
218218
let getPushTime = (pushTime, updatedAt) => {
219219
let time = pushTime || updatedAt;
220220
let dateTime = new Date(time);
221-
let isLocal = time.indexOf('Z') === -1;
221+
let isLocal = typeof time === 'string' && time.indexOf('Z') === -1;
222222
let timeContent = DateUtils.yearMonthDayTimeFormatter(dateTime, !isLocal);
223223
let result = [];
224224
if (isLocal) {

0 commit comments

Comments
 (0)