diff --git a/app/coffee/modules/common.coffee b/app/coffee/modules/common.coffee index a7751d37..57bd50d9 100644 --- a/app/coffee/modules/common.coffee +++ b/app/coffee/modules/common.coffee @@ -279,7 +279,7 @@ ChangeDirective = -> html = commentBaseTemplate({ avatar: getUserAvatar(comment.user.pk) userFullName: getUserFullName(comment.user.pk) - creationDate: moment(comment.created_at).format("YYYY/MM/DD HH:mm") + creationDate: moment(comment.created_at).format("DD MMM YYYY HH:mm") comment: taiga.nl2br(comment.comment_html) changesText: buildChangesText(comment) hasChanges: countChanges(comment) > 0 @@ -293,7 +293,7 @@ ChangeDirective = -> html = changeBaseTemplate({ avatar: getUserAvatar(change.user.pk) userFullName: getUserFullName(change.user.pk) - creationDate: moment(change.created_at).format("YYYY/MM/DD HH:mm") + creationDate: moment(change.created_at).format("DD MMM YYYY HH:mm") comment: change.comment_html }) diff --git a/app/coffee/modules/common/components.coffee b/app/coffee/modules/common/components.coffee index 68d4cf5c..e7368087 100644 --- a/app/coffee/modules/common/components.coffee +++ b/app/coffee/modules/common/components.coffee @@ -30,8 +30,8 @@ module = angular.module("taigaCommon") DateRangeDirective = -> renderRange = ($el, first, second) -> - initDate = moment(first).format("YYYY/MM/DD") - endDate = moment(second).format("YYYY/MM/DD") + initDate = moment(first).format("DD MMM YYYY") + endDate = moment(second).format("DD MMM YYYY") $el.html("#{initDate}-#{endDate}") link = ($scope, $el, $attrs) ->