Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time/Date is changed with amDateFormat #92

Open
vapits opened this issue Oct 5, 2016 · 4 comments
Open

Time/Date is changed with amDateFormat #92

vapits opened this issue Oct 5, 2016 · 4 comments

Comments

@vapits
Copy link

vapits commented Oct 5, 2016

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.

@ebosantos
Copy link

@vapits Did you figure out how to deal with? I'm facing the same problem...

@ebosantos
Copy link

Actually on the angular1 version, they have amUtc option. It'd be awesome if version 2 has as well.

@vapits
Copy link
Author

vapits commented Dec 6, 2016

@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.

@bodnarbm
Copy link
Contributor

I've submitted PR #121 to bring amUtc to angular2-moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants