elog.handlers: using pure datetime() code