diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-18 18:47:55 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-18 18:47:55 -0700 |
commit | 22a46b6d1c362d3af4b1d675d9c1e304edbda198 (patch) | |
tree | d87058fd030920da8b0fa76d4d793d4fa7267d27 /system/admin/handlers.go | |
parent | 3823ffa6616339ef26478f52e9601735a9ec961e (diff) |
updating time format and fixing typo
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r-- | system/admin/handlers.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go index c30e597..6effe6a 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -428,14 +428,14 @@ func adminPostListItem(p editor.Editable, t string) []byte { // use sort to get other info to display in admin UI post list tsTime := time.Unix(int64(s.Time()/1000), 0) upTime := time.Unix(int64(s.Touch()/1000), 0) - updatedTime := upTime.Format("Jan 2, 2006 15:04 PM") - publishTime := tsTime.Format("1/2/06") + updatedTime := upTime.Format("01/02/06 03:04 PM") + publishTime := tsTime.Format("01/02/06") post := ` <li class="col s12"> <a href="/admin/edit?type=` + t + `&id=` + fmt.Sprintf("%d", p.ContentID()) + `">` + p.ContentName() + `</a> <span class="post-detail">Updated: ` + updatedTime + `</span> - <span class="right">Updated: ` + publishTime + `</span> + <span class="right">` + publishTime + `</span> </li>` return []byte(post) |