I have read many questions related to this issue. However, most solutions included adding third party libraries and I really would like to keep this simple, if possible.
Basically, I'm using Angular 4 and trying to display the date in a nice way to the user. This is an example on how I get the date from an API:
2018-04-12T18:00:00
I'm using Angular's default DatePipe to display it in a nice way:
model.event.startDate | date : "h:mm a” (OUTPUT SHOULD BE 6PM)
Every browser (Edge, Mozilla and Chrome) displays it correctly (6PM). The only issue is for iPhone users. Safari displays (3PM). I live in Brazil and my users will always be from Brazil (GMT -3)
Is there an easy way to solve this without using any third party libraries?
Any help would be greatly appreciated.