Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
renfeisong committed Jul 9, 2015
2 parents 822a47a + fd4e2e5 commit 9118abe
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,12 @@ SRFMailProApp.service("mailServices", ["$http", "$cookies", "userServices",
.success(function (data, status, headers, config) {
that.mail_list = data["sessions"];
that.mail_list.map(function (mail) {
if (mail.income) {
if (mail.lastOperation) {
var time = new Date(mail.lastOperation.time);
mail.display_time = time.getFullYear() + "/" + time.getMonth() + "/" + time.getDate();
} else {
var time = new Date(mail.income.time);
mail.income.time = time.getFullYear() + "/" + time.getMonth() + "/" + time.getDate();
}
if (mail.reply) {
var time = new Date(mail.reply.time);
mail.reply.time = time.getFullYear() + "/" + time.getMonth() + "/" + time.getDate();
mail.display_time = time.getFullYear() + "/" + time.getMonth() + "/" + time.getDate();
}
});
success();
Expand Down

0 comments on commit 9118abe

Please sign in to comment.