diff --git a/partials/tabs/mentors.html b/partials/tabs/mentors.html
index 28b87b02..233fc4a3 100644
--- a/partials/tabs/mentors.html
+++ b/partials/tabs/mentors.html
@@ -4,7 +4,7 @@
Hello there!
- We are the mentors for coala in GSoC 2018.
+ We are the mentors for coala in GSoC {{ getGsocYear() }}.
Just drop a message on Gitter -
@@ -42,7 +42,7 @@
Admins
- We are the admins for coala in GSoC 2018.
+ We are the admins for coala in GSoC {{ getGsocYear() }}.
Just drop a message on Gitter
diff --git a/resources/js/app.js b/resources/js/app.js
index af811167..750702b1 100644
--- a/resources/js/app.js
+++ b/resources/js/app.js
@@ -386,6 +386,16 @@
self.mentorsList = {}
self.adminsList = {}
+ $scope.getGsocYear = function() {
+ var gsocSwitchMonth = 6;
+ var currentdate = new Date();
+ if (currentdate.getMonth() >= gsocSwitchMonth) {
+ return currentdate.getFullYear() + 1;
+ } else {
+ return currentdate.getFullYear();
+ }
+ }
+
$http.get('data/projects.liquid')
.then(function (res) {
$scope.projects = res.data.filter(project => project.status != "completed")