samsonjs/strftime

bug in %z format

ray007 opened this issue · 1 comments

In the non-UTC case, there's a small problem with handling the sign of the offset.
changing the return statement to

return (off < 0 ? '+' : '-') + pad(Math.abs(off / 60)) + pad(off % 60);

fixes things.

Thanks! Fixed in SHA: 403504a, released v0.5.1 with the fix.