strftime for innfeed

Russ Allbery rra at stanford.edu
Sat Dec 13 23:25:53 UTC 2008


Alexander Bartolich <alexander.bartolich at gmx.at> writes:

> With the one exception of function error_log_stderr_date (in misc.c)
> innfeed currently uses ctime(3) to print date and time. I changed that
> all to strftime(3) and made the format string configurable.

This is an excellent idea.  ctime(3) is a horrible interface.

Should we consider switching to a saner date and time format as the
default as well while we're at it?  I always use %Y-%m-%d %H:%M:%S for any
new code that I write, since it's an ISO standard, the least ambiguous
across countries and has the fewest localization problems.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.



More information about the inn-workers mailing list