blog style improvements; fix connection pool drain
This commit is contained in:
parent
0a75216aaf
commit
1d98a6fdca
8 changed files with 51 additions and 24 deletions
|
|
@ -51,7 +51,11 @@ func (b *BlogPost) GetMonth() string {
|
|||
}
|
||||
|
||||
func (b *BlogPost) PrintDate() string {
|
||||
return b.PublishDate.Format("2 January 2006, 15:04")
|
||||
return b.PublishDate.Format("02 January 2006, 15:04")
|
||||
}
|
||||
|
||||
func (b *BlogPost) PrintShortDate() string {
|
||||
return b.PublishDate.Format("2 Jan 2006")
|
||||
}
|
||||
|
||||
func (b *BlogPost) TextPublishDate() string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue