diff --git a/src/js/view/messagelistitem-view.js b/src/js/view/messagelistitem-view.js index 8347d38..e5b142e 100644 --- a/src/js/view/messagelistitem-view.js +++ b/src/js/view/messagelistitem-view.js @@ -14,6 +14,10 @@ app.view.MessageListItemView = Backbone.View.extend({ params.folder = this.options.folder; params.id = encodeURIComponent(params.id); + var util = new app.crypto.Util(window, null); + var date = util.parseDate(params.sentDate); + params.displayDate = date.getDate() + '.' + (date.getMonth() + 1) + '. ' + date.getHours() + ':' + date.getMinutes(); + $(this.el).html(this.template(params)); return this; } diff --git a/src/tpl/messagelistitem.html b/src/tpl/messagelistitem.html index f1d4e08..de6d79c 100644 --- a/src/tpl/messagelistitem.html +++ b/src/tpl/messagelistitem.html @@ -2,5 +2,5 @@
<%- subject %>
-<%- sentDate %>
+<%- displayDate %>
\ No newline at end of file