vendor/assets/javascripts/webshims/shims/forms-picker.js in webshims-rails-1.10.6 vs vendor/assets/javascripts/webshims/shims/forms-picker.js in webshims-rails-1.10.9
- old
+ new
@@ -8,10 +8,10 @@
var ret = [date.getFullYear(), moduleOpts.addZero(date.getMonth() + 1), moduleOpts.addZero(date.getDate())];
ret.month = ret[0]+'-'+ret[1];
ret.date = ret[0]+'-'+ret[1]+'-'+ret[2];
return ret;
};
- var today = getDateArray(new Date());
+ var today = getDateArray(new Date(new Date().getTime() - (new Date().getTimezoneOffset() * 60 * 1000 )));
var _setFocus = function(element, _noFocus){
element = $(element || this.activeButton);