0
我从日期得到非常奇怪的数据,我只是不明白为什么?!?角度不转换unix日期,因为它应该
<b>{{ (lines.date*1000) | date:"dd-mm-yyyy" }}: </b>
这里是我的线阵列中的数据:
"lines" : [
{
"text" : "was CREATED Tue Jul 11 2017 from Booking.com: ThaiHome by ThaiHome Staff",
"date" : 1499754031
},
{
"date" : 1499754031,
"text" : "wrote message: This is the message the NEW user writes to manager"
},
{
"date" : 1499754140,
"text" : "wrote message: This is the message the NEW user writes to manager"
},
{
"date" : 1499754140,
"text" : "wrote message: This is the message the NEW user writes to manager"
},
这里是输出
11-20-2017: was CREATED Tue Jul 11 2017 from Booking.com: ThaiHome by ThaiHome Staff
11-20-2017: wrote message: This is the message the NEW user writes to manager
11-22-2017: wrote message: This is the message the NEW user writes to manager
11-22-2017: wrote message: This is the message the NEW user writes to manager
11-22-2017: wrote message: This is the message the NEW user writes to manager
11-24-2017: wrote message: This is the message the NEW user writes to manager
11-24-2017: wrote message: This is the message the NEW user writes to manager
11-24-2017: wrote message: This is the message the NEW user writes to manager
为什么会出现这些奇怪的日期,而不是越来越平常实际日期?
Noooo真的吗?哈哈哈该死! - 我一直在为这个问题出汗一个小时,试图用数学哈哈解决它。我需要更好地看看它接受的令牌:-)感谢Prerak :-D – torbenrudgaard
乐意帮忙:) –
https://docs.angularjs.org/api/ng/filter/date - 它们都是:-D – torbenrudgaard