mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Merge pull request #123 from demis-palma/patch-2
Pointless arithmetic expressions
This commit is contained in:
commit
4a5547f6e0
@ -752,7 +752,7 @@
|
||||
var tmpDate = [],timeOffset,currentTime;
|
||||
|
||||
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);
|
||||
}else
|
||||
currentTime = sDateTime?Date.parseDate(sDateTime, options.format):_this.now();
|
||||
|
Loading…
Reference in New Issue
Block a user