change time format to 24h
This commit is contained in:
@@ -36,7 +36,7 @@ func (a *Article) ViewModel() *ArticleViewModel {
|
|||||||
return &ArticleViewModel{
|
return &ArticleViewModel{
|
||||||
Title: a.Title,
|
Title: a.Title,
|
||||||
Author: a.Author,
|
Author: a.Author,
|
||||||
PublishDate: a.PublishDate.Local().Format("02.01.2006 03:04"),
|
PublishDate: a.PublishDate.Local().Format("02.01.2006 15:04"),
|
||||||
SourceUrl: a.SourceUrl,
|
SourceUrl: a.SourceUrl,
|
||||||
Summary: summary,
|
Summary: summary,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user