Merge pull request #123 from demis-palma/patch-2

Pointless arithmetic expressions
This commit is contained in:
Valeriy 2014-05-26 09:42:10 +06:00
commit 4a5547f6e0

View File

@ -752,7 +752,7 @@
var tmpDate = [],timeOffset,currentTime; var tmpDate = [],timeOffset,currentTime;
if( ( tmpDate = /^(\+|\-)(.*)$/.exec(sDateTime) ) && ( tmpDate[2]=Date.parseDate(tmpDate[2], options.formatDate) ) ) { if( ( tmpDate = /^(\+|\-)(.*)$/.exec(sDateTime) ) && ( tmpDate[2]=Date.parseDate(tmpDate[2], options.formatDate) ) ) {
timeOffset = tmpDate[2].getTime()-1*(tmpDate[2].getTimezoneOffset())*60000; timeOffset = tmpDate[2].getTime()-(tmpDate[2].getTimezoneOffset())*60000;
currentTime = new Date((_xdsoft_datetime.now()).getTime()+parseInt(tmpDate[1]+'1')*timeOffset); currentTime = new Date((_xdsoft_datetime.now()).getTime()+parseInt(tmpDate[1]+'1')*timeOffset);
}else }else
currentTime = sDateTime?Date.parseDate(sDateTime, options.format):_this.now(); currentTime = sDateTime?Date.parseDate(sDateTime, options.format):_this.now();