diff --git a/internal/database/articles.go b/internal/database/articles.go index 63f3a2c..36dd0ca 100644 --- a/internal/database/articles.go +++ b/internal/database/articles.go @@ -79,7 +79,7 @@ func ArticlesForDay(store *Store, day time.Time) (articles []model.DisplayArticl r.FormatedCreatedAt = fmt.Sprintf("Prije %d minuta.", int(math.Floor(ago.Minutes()))) } else if hours > 24 { - r.FormatedCreatedAt = r.CreatedAt.Format("01.02.2006. 15:04:05") + r.FormatedCreatedAt = r.CreatedAt.Format("02.01.2006. 15:04:05") } else { r.FormatedCreatedAt = fmt.Sprintf("Prije %d sati.", int(math.Floor(hours))) } @@ -123,7 +123,7 @@ func ArticleByID(store *Store, ID int, slug string) (article model.DisplayArticl r.FormatedCreatedAt = fmt.Sprintf("Prije %d minuta.", int(math.Floor(ago.Minutes()))) } else if hours > 24 { - r.FormatedCreatedAt = r.CreatedAt.Format("01.02.2006. 15:04:05") + r.FormatedCreatedAt = r.CreatedAt.Format("02.01.2006. 15:04:05") } else { r.FormatedCreatedAt = fmt.Sprintf("Prije %d sati.", int(math.Floor(hours))) } diff --git a/server b/server index 6cefd19..562f6bd 100755 Binary files a/server and b/server differ diff --git a/spider b/spider index 77647f9..0cf5e94 100755 Binary files a/spider and b/spider differ