From 98736ba280573b66eb3d5bf026ed943dc8ceb663 Mon Sep 17 00:00:00 2001 From: horus Date: Thu, 30 Jul 2020 21:27:51 +0200 Subject: Crawls top anime. --- app/helpers.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'app/helpers.php') diff --git a/app/helpers.php b/app/helpers.php index 7ac1fd6..9246362 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -66,3 +66,20 @@ function getAiringStatusCode($airing_status) { } return $status[0]->id; } + +function getCurrentSeason(){ + switch( date("m") ) { + case 1: + case 2: + case 3: return "Winter"; + case 4: + case 5: + case 6: return "Spring"; + case 7: + case 8: + case 9: return "Summer"; + case 10: + case 11: + case 12: return "Fall"; + } +} -- cgit v1.2.3