Commit ea6e99ff authored by afc163's avatar afc163

Fix safari invalid date

parent ffb677e2
...@@ -125,7 +125,7 @@ export const getNotice = [ ...@@ -125,7 +125,7 @@ export const getNotice = [
title: titles[1], title: titles[1],
logo: avatars[1], logo: avatars[1],
description: '希望是一个好东西,也许是最好的,好东西是不会消亡的', description: '希望是一个好东西,也许是最好的,好东西是不会消亡的',
updatedAt: new Date('2017-07-24 11:00:00'), updatedAt: new Date('2017-07-24'),
member: '全组都是吴彦祖', member: '全组都是吴彦祖',
href: '', href: '',
memberLink: '', memberLink: '',
...@@ -145,7 +145,7 @@ export const getNotice = [ ...@@ -145,7 +145,7 @@ export const getNotice = [
title: titles[3], title: titles[3],
logo: avatars[3], logo: avatars[3],
description: '那时候我只会想自己想要什么,从不想自己拥有什么', description: '那时候我只会想自己想要什么,从不想自己拥有什么',
updatedAt: new Date('2017-07-23 06:23:00'), updatedAt: new Date('2017-07-23'),
member: '程序员日常', member: '程序员日常',
href: '', href: '',
memberLink: '', memberLink: '',
...@@ -155,7 +155,7 @@ export const getNotice = [ ...@@ -155,7 +155,7 @@ export const getNotice = [
title: titles[4], title: titles[4],
logo: avatars[4], logo: avatars[4],
description: '凛冬将至', description: '凛冬将至',
updatedAt: new Date('2017-07-23 06:23:00'), updatedAt: new Date('2017-07-23'),
member: '高逼格设计天团', member: '高逼格设计天团',
href: '', href: '',
memberLink: '', memberLink: '',
...@@ -165,7 +165,7 @@ export const getNotice = [ ...@@ -165,7 +165,7 @@ export const getNotice = [
title: titles[5], title: titles[5],
logo: avatars[5], logo: avatars[5],
description: '生命就像一盒巧克力,结果往往出人意料', description: '生命就像一盒巧克力,结果往往出人意料',
updatedAt: new Date('2017-07-23 06:23:00'), updatedAt: new Date('2017-07-23'),
member: '骗你来学计算机', member: '骗你来学计算机',
href: '', href: '',
memberLink: '', memberLink: '',
......
...@@ -14,8 +14,8 @@ for (let i = 0; i < 46; i += 1) { ...@@ -14,8 +14,8 @@ for (let i = 0; i < 46; i += 1) {
description: '这是一段描述', description: '这是一段描述',
callNo: Math.floor(Math.random() * 1000), callNo: Math.floor(Math.random() * 1000),
status: Math.floor(Math.random() * 10) % 4, status: Math.floor(Math.random() * 10) % 4,
updatedAt: new Date(`2017-07-${Math.floor(i / 2) + 1} ${Math.floor(i / 2) + 1}:00:00`), updatedAt: new Date(`2017-07-${Math.floor(i / 2) + 1}`),
createdAt: new Date(`2017-07-${Math.floor(i / 2) + 1} ${Math.floor(i / 2) + 1}:00:00`), createdAt: new Date(`2017-07-${Math.floor(i / 2) + 1}`),
progress: Math.ceil(Math.random() * 100), progress: Math.ceil(Math.random() * 100),
}); });
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment