【发布时间】:2017-10-18 23:40:36
【问题描述】:
我有一个json格式
{
endDate:"2017-05-15Z"
id:"9od718ztlx8dffe3f1q78bc1t"
name:"Clausura - Quarter-finals"
startDate:"2017-05-11Z"
**time:"01:00:00Z"**
}
我需要将时间转换为格林威治标准时间。我尝试使用各种管道,但结果总是相同的。有人知道我是否可以用任何管道转动时间吗? 我的错误是使用任何管道
EXCEPTION: Error in ./CalendarComponent class CalendarComponent - inline template:11:16 caused by: Invalid argument '01:00:00Z' for pipe 'DatePipe'
【问题讨论】:
标签: angular date pipe user-defined-types gmt