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

add utc helper and computed property macro #274

Merged
merged 1 commit into from
Feb 18, 2018

Conversation

crotwell
Copy link
Contributor

Adds support for moment.utc so that you can do things like:

{{utc interval=1000}}
{{utc (moment now)}}    {{!-- Mon Feb 12 2018 21:30:20 GMT+0000 --}}
{{moment-format (utc) 'YYYY-MM-DD HH:mm:ss Z'}}    {{!-- 2018-02-12 21:30:20 +00:00 --}}
{{utc '2018-01-01T00:00:00+01:00' 'YYYY-MM-DD HH:mm:ssZ'}}  {{!-- Sun Dec 31 2017 23:00:00 GMT+0000 --}}

Also included a utc computed property macro, which I think takes care of Issue #270 .

@jasonmit
Copy link
Collaborator

Thank you! It will be part of the next release :)

@jasonmit jasonmit merged commit 26d8a29 into adopted-ember-addons:master Feb 18, 2018
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

Successfully merging this pull request may close these issues.

2 participants