diff --git a/changelog.md b/changelog.md index 7f0e389..bf593bc 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +3.1.2 (20 February, 2018) +* Fix for `j` formatting option + 3.1.0 (13 February, 2018) * License changed from MIT to 0BSD * Removed Bower support, use NPM instead diff --git a/dist/pickmeup.min.js b/dist/pickmeup.min.js index 58852b3..c7b6760 100644 --- a/dist/pickmeup.min.js +++ b/dist/pickmeup.min.js @@ -14,7 +14,7 @@ k.getDay()&&g(f,"pmu-saturday"),h=c.render(new Date(k))||{},l=x(new Date(k)).val "pmu-days"))})()}t.setDate(1);r.setDate(1);q(r,1);A(r,-1);d=b.querySelector(".pmu-prev");b=b.querySelector(".pmu-next");d&&(d.style.visibility=c.min&&c.min>=t?"hidden":"visible");b&&(b.style.visibility=c.max&&c.max<=r?"hidden":"visible");C(a,"fill")}function v(a,b){var c=b.format,d=b.separator,e=b.locales[b.locale];if(a instanceof Date||a instanceof Number)return x(new Date(a));if(!a)return x(new Date);if(a instanceof Array){a=a.slice();for(c=0;cm?2E3:1900;break;case "H":case "I":case "k":case "l":k=parseInt(a[c],10);break;case "P":case "p":/pm/i.test(a[c])&&12>k?k+=12:/am/i.test(a[c])&&12<=k&&(k-=12);break;case "M":l=parseInt(a[c],10)}e=new Date(void 0===m?n.getFullYear():m,void 0===f?n.getMonth():f,void 0===g?n.getDate():g,void 0===k?n.getHours():k,void 0===l?n.getMinutes():l,0);isNaN(1*e)&&(e=new Date);return x(e)}function x(a){a.setHours(0,0,0,0);return a}function D(a,b,c){var d=a.getMonth(),e=a.getDate(),g=a.getFullYear(), -f=a.getDay(),m=a.getHours(),k=12<=m,l=k?m-12:m,n;n=new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0);var p=new Date(a.getFullYear(),0,0,0,0,0);n=Math.floor((n-p)/24*36E5);0==l&&(l=12);var p=a.getMinutes(),r=a.getSeconds();b=b.split("");for(var h,q=0;qe?"0"+e:e;break;case "e":h=e;break;case "H":h= +f=a.getDay(),m=a.getHours(),k=12<=m,l=k?m-12:m,n;n=new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0);var p=new Date(a.getFullYear(),0,0,0,0,0);n=Math.floor((n-p)/864E5);0==l&&(l=12);var p=a.getMinutes(),r=a.getSeconds();b=b.split("");for(var h,q=0;qe?"0"+e:e;break;case "e":h=e;break;case "H":h= 10>m?"0"+m:m;break;case "I":h=10>l?"0"+l:l;break;case "j":h=100>n?10>n?"00"+n:"0"+n:n;break;case "k":h=m;break;case "l":h=l;break;case "m":h=9>d?"0"+(1+d):1+d;break;case "M":h=10>p?"0"+p:p;break;case "p":case "P":h=k?"PM":"AM";break;case "s":h=Math.floor(a.getTime()/1E3);break;case "S":h=10>r?"0"+r:r;break;case "u":h=f+1;break;case "w":h=f;break;case "y":h=(""+g).substr(2,2);break;case "Y":h=g}b[q]=h}return b.join("")}function O(a,b){var c=a.__pickmeup.options,d;x(b);a:{var e;switch(c.mode){case "multiple":e= b.valueOf();for(d=0;d", "repository" : {