Angular2 date pipe does not work in IE 11 and edge 13/14

前端 未结 8 1338
闹比i
闹比i 2020-12-05 09:50

I\'m using Angular 2.0 final, and I have an incorrect format of dates when I add hours and minutes in the format string:

In the template of the component, I have:

8条回答
  •  一向
    一向 (楼主)
    2020-12-05 09:54

    Work in Angular 5.x

    In version 5.x of the Angular this problem is working correctly in Edge (v.38.14393.1066.0) and in IE (v.11.1198.14393.0), test in your version!

    Live example: Plunker Angular 5.x


    Related issue that solved the problem (if I found something inconsistent): https://github.com/angular/angular/issues/9524


    Answer that involves the entire operation of the Angular DatePipe.

提交回复
热议问题