Permalink
Browse files

Fixed.

Now returns the correct month.
  • Loading branch information...
Kadauchi committed May 25, 2018
1 parent cba3298 commit 1363500e3e1e6776069ca1e710c2629824c8089a
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/mturk-date.js
@@ -8,7 +8,7 @@ function MturkDate(offset = 0) {
const isPST = new Date(toPST);
const yyyy = isPST.getFullYear();
const mm = `0${isPST.getMonth()}`.slice(-2);
const mm = `0${isPST.getMonth() + 1}`.slice(-2);
const dd = `0${isPST.getDate()}`.slice(-2);
return `${yyyy}${mm}${dd}`;

0 comments on commit 1363500

Please sign in to comment.