Formating date in a more international format
parent
25e7f6a6f4
commit
63bbf2a791
|
@ -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
|
||||
})
|
||||
|
||||
|
|
|
@ -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) ->
|
||||
|
|
Loading…
Reference in New Issue