ngx-moment
ngx-moment copied to clipboard
Time/Date is changed with amDateFormat
Hi there, I'm guessing this is related with timezones (well ye) but I cannot find a way to resolve it. In my case I have something like this:
<time>{{mydate | amDateFormat:'dddd DD/MM/YYYY HH:mm'}}</time>
where mydate
is 2016-09-02T14:15:00.000Z
.
And the result I get is one or two hours ahead from this depending the date and the UTC offset.
How can I fix it? Is there any option available somewhere because I cannot find anything in the docs.
@vapits Did you figure out how to deal with? I'm facing the same problem...
Actually on the angular1 version, they have amUtc option. It'd be awesome if version 2 has as well.
@ebosantos unfortunately there is no option in angular2 version as I understand so we have to wait. I left the issue opened for this reason.
I've submitted PR #121 to bring amUtc to angular2-moment.