Fixing code style to make #238 pass jshint

This commit is contained in:
Candid Dauth 2013-04-11 00:41:15 +02:00
parent bde871707b
commit 694fc3eb6e

View File

@ -67,13 +67,13 @@ function dateToString(date) {
}
var offset = -date.getTimezoneOffset();
var ret = pad(date.getFullYear(), 4) + '-'
+ pad(date.getMonth() + 1, 2) + '-'
+ pad(date.getDate(), 2) + 'T'
+ pad(date.getHours(), 2) + ':'
+ pad(date.getMinutes(), 2) + ':'
+ pad(date.getSeconds(), 2) + '.'
+ pad(date.getMilliseconds(), 3);
var ret = pad(date.getFullYear(), 4) + '-' +
pad(date.getMonth() + 1, 2) + '-' +
pad(date.getDate(), 2) + 'T' +
pad(date.getHours(), 2) + ':' +
pad(date.getMinutes(), 2) + ':' +
pad(date.getSeconds(), 2) + '.' +
pad(date.getMilliseconds(), 3);
if(offset < 0) {
ret += "-";