diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 10:57:27 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 10:57:27 +0530 |
commit | fff3dadabc321871e6819392efc605c6dffe2e69 (patch) | |
tree | 25aceed23b73b2ad975a06d73fad091d0886a2a6 /util/season.go | |
parent | a44d6eb2fdddc75983c735e1a0fa744014db9593 (diff) |
migrated from MAL2Go to mg package
Diffstat (limited to 'util/season.go')
-rw-r--r-- | util/season.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/season.go b/util/season.go index 62645bf..96f7e70 100644 --- a/util/season.go +++ b/util/season.go @@ -21,11 +21,11 @@ package util import ( "time" "strconv" - a "github.com/MikunoNaka/MAL2Go/v4/anime" + "vidhukant.com/mg" ) -func GetCurrentSeason() a.Season { +func GetCurrentSeason() mg.Season { today := time.Now() month := today.Format("01") @@ -43,7 +43,7 @@ func GetCurrentSeason() a.Season { season = "fall" } - return a.Season { + return mg.Season { Name: season, Year: year, } |