diff --git a/internal/radio/mostlistened.go b/internal/radio/mostlistened.go index 29df1c5..11ce6e2 100644 --- a/internal/radio/mostlistened.go +++ b/internal/radio/mostlistened.go @@ -7,6 +7,8 @@ import ( "time" ) +const MostListenedDateFormat = "02 January 2006" + type MostListenedSong struct { Listeners int Date time.Time @@ -14,7 +16,7 @@ type MostListenedSong struct { } func (mls *MostListenedSong) DateString() string { - return mls.Date.Format("02 January 2006") + return mls.Date.Format(MostListenedDateFormat) } var mostListened MostListenedSong