Formating date in a more international format

stable
Jesús Espino 2014-08-19 15:20:45 +02:00
parent 25e7f6a6f4
commit 63bbf2a791
2 changed files with 4 additions and 4 deletions

View File

@ -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
})

View File

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