fix sign of %z, indentation

This commit is contained in:
Sami Samhuri 2011-06-08 01:00:35 -07:00
parent 2349fcd6d3
commit 70445ffc9a

View file

@ -112,13 +112,13 @@
return tz && tz[1] || '';
}
case 'z':
if (_useUTC) {
return "+0000";
}
else {
var off = d.getTimezoneOffset();
return (off < 0 ? '-' : '+') + pad(off / 60) + pad(off % 60);
}
if (_useUTC) {
return "+0000";
}
else {
var off = d.getTimezoneOffset();
return (off < 0 ? '+' : '-') + pad(off / 60) + pad(off % 60);
}
default: return c;
}
});