Random thought: I had similar errors from the calibre-server when there was no timezone information condifured. I don't remember the exact message, but it had something to do with timevalues being too large. This sounds a lot like what you are seeing.
On my debian lenny machine, I fixed it by running dpkg-reconfigure tzdata. I don't know what you need to do on your NAS.