Consider a MySQL database sends a timestamp in the standard SQL TIMESTAMP format of YYYY-MM-DD HH:MI:SS
Here, 2019-09-08 08:00:00
Now, I need to display it on my Angular website manipulating the timestamp based on the time zone in which the site has been opened.
The pipe as mentioned in Angular documentation https://angular.io/api/common/DatePipe
{{event.event_start_ts | date:'EEEE, MMMM d, y, h:mm:ss a zzzz'}}
Does give a wrong output as Sunday, September 8, 2019, 8:00:00 AM GMT+05:30 (because it automatically considered timezone added to the provided time). I need it to be as when this +05:30 is added to September 8, 2019, 8:00:00 AM. Further, I do not want to Display GMT+05:30.
Also, I very well know that this can be solved by using moments.js or just pure javascript or some kind of custom pipe. But, I wonder if there is a pipe tick that I can't figure out.