From 0db7760b45c35c2c2debdf3b05be2b98aca9a5c9 Mon Sep 17 00:00:00 2001 From: Suraj Date: Tue, 1 Mar 2016 00:17:14 +0530 Subject: [PATCH] Now shows correct timestamp --- db/tasks.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/tasks.go b/db/tasks.go index 7ce1456..84ad44f 100644 --- a/db/tasks.go +++ b/db/tasks.go @@ -125,7 +125,7 @@ func GetTasks(status, category string) (types.Context, error) { task.IsOverdue = true // If one week then overdue by default } } - task.Created = TaskCreated.Format("Jan 01 2006") + task.Created = TaskCreated.Format("Jan 2 2006") tasks = append(tasks, task) } @@ -279,7 +279,7 @@ func SearchTask(query string) types.Context { if (week.String() < CurrentTime.String()) && (task.Priority != "1") { task.IsOverdue = true // If one week then overdue by default } - task.Created = TaskCreated.Format("Jan 01 2006") + task.Created = TaskCreated.Format("Jan 2 2006") tasks = append(tasks, task) } @@ -307,7 +307,7 @@ func GetComments() (map[int][]types.Comment, error) { } // comment.Content = string(md.Markdown([]byte(comment.Content))) ## have to fix the

issue markdown support created = created.Local() - comment.Created = created.Format("02 Jan 2006 15:04:05") + comment.Created = created.Format("Jan 2 2006 15:04:05") commentMap[taskID] = append(commentMap[taskID], comment) } return commentMap, nil