On Sun, 2007-05-06 at 16:34 +0200, Peter J. Holzer wrote: > So basically, if we can assume a C99-compatible strftime > implementation, > and we make sure that LC_TIME is (implicitely or explicitely) set to > "C", we can use strftime. If we care about platforms where this is not > the case we must format the datestring ourselves.
Actually, based on what you wrote, I would use strftime and just do the timezone ourselves and that could be as simple as: If not C99 compliant set: QPSMTPD_TZ on install. This problem is only going to affect people running really old commercial unices ... surely the BSDs have all got this right and we know that glibc has been compliant since about 2001. Ulrich Drepper wrote the FSF locale documentation in 1996 so it was likely compliant before C99. -- --gh
