I have following message on Login Failed response. The response shows Date in UTC format. I wanted to get the date and convert from UTC to Local.
I tried the following but I'm still having the same date formate. Can anyone help me what I'm doing wrong here 

```
var loginRes = 'Too many incorrect attempts. Account is locked until: 2018-03-16T05:13:58+00:00'

var dateRegx = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}-\d{2}:\d{2}/;
var ErrorMessage = (loginRes).replace(dateRegx, 
  function(match){
       return moment(match).format("MMMM Do YYYY, h:mm:ss a");
});
console.log(ErrorMessage);

```

On my console print, I'm having same as LoginRes. I was expecting something like :

`Too many incorrect attempts. Account is locked until: March 16th 2018, 8:13:14 pm`