Fixing code style to make #238 pass jshint
This commit is contained in:
parent
bde871707b
commit
694fc3eb6e
14
lib/utils.js
14
lib/utils.js
@ -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 += "-";
|
||||
|
Loading…
Reference in New Issue
Block a user