angular.js - Please tell me about the timezone problem of date filter in angularjs
大家讲道理
大家讲道理 2017-05-15 16:59:58
0
2
566

This is what I output now:
{{answer.time | date:'yyyy-MM-dd'}}
The result is output: 1970-01-18
The value of answer.time is Timestamp.

How can I display the date correctly?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
滿天的星座

O, it turns out that the number of seconds I sent from the background should be changed to milliseconds

洪涛

js 处理 answer.time = new Date(answer.time)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template