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

Refactor Notification to be independant from MnoNotifications #15

Merged
merged 8 commits into from
Sep 14, 2017

Conversation

x4d3
Copy link
Contributor

@x4d3 x4d3 commented Sep 12, 2017

No description provided.

@x4d3 x4d3 requested a review from alexnoox September 12, 2017 16:42
@@ -46,7 +46,7 @@ angular.module('mnoUiElements').component('mnoCreateTaskModal', {
# Private

# Strip time & zone from local date and create a UTC date at 00:00 hours.
parseAsUtcDate = (date)->
parseAsUTCDate = (date) ->
dateStr = moment(date).format('YYYY-MM-DD')
moment.utc(dateStr).toISOString()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

About the dates formatting: For the moment let's keep this format. The 2.0 of mno-enterprise-angular is localized so it will need to use the angular-moment filters in the template:
<span title="{{subscription.end_date | amUtc | amLocal}}">{{subscription.end_date | amCalendar}}</span>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parseAsUTCDate is duplicated, maybe should use a helper service.

@x4d3 x4d3 merged commit 9e34a30 into maestrano:master Sep 14, 2017
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.

None yet

2 participants