aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunasSudo <runassudo@yingtongli.me>2017-03-10 20:03:22 +1100
committerRunasSudo <runassudo@yingtongli.me>2017-03-10 20:03:22 +1100
commiteac979e2e618182b10fb178a9e3a459442be6615 (patch)
treee29f1638bd493bd0d1873c5dfdd38435c87d31c6
parentdbec55f3706665dc05ad4961b08c1d4d91e6ecf2 (diff)
Automatically detect year
-rw-r--r--allocics.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/allocics.js b/allocics.js
index a8c17f3..60900a3 100644
--- a/allocics.js
+++ b/allocics.js
@@ -40,7 +40,7 @@
// ALLOCATE+ STUFF
- var YEAR = 2017; // TODO: Automatically detect this
+ var YEAR = new Date().getFullYear(); // WARNING! May not give the expected result in strange edge-cases
// Set to all weeks
timetableAllWeeks();
Contact (issues, pull requests, etc.) at git@yingtongli.me. Generated by cgit.