[Bug 2464] Adding timestamp to debug messages (log.c:do_log)
Mark D. Baushke
mdb at juniper.net
Thu Oct 29 13:23:54 AEDT 2015
Darren Tucker <dtucker at zip.com.au> writes:
> On Thu, Oct 29, 2015 at 12:32 PM, Mark D. Baushke <mdb at juniper.net> wrote:
> > Diff updated with suggested changes (also, making the timestamp format
> > ISO8601 compliant).
> > Hmmm... full IOS8601 compliance would include the timzeone so the format
> I don't have a copy of the ISO8601 text, but the wikipedia page says
> "If no UTC relation information is given with a time representation,
> the time is assumed to be in local time." Which in this case it is.
Hmmm... I could be wrong here as I have not read the actual ISO 8601
standard since 1999, but the form 'YYYY-MM-DD HH:MM:SS' is the form
where the lack of a timezone indicated local time. I do recall that a
default local time was generally discouraged as being ambiguous.
In any case, I am more interested in syslog() being used rather than an
ISO 8601 format time and wonder what use case needs to use strftime()
foromats at all.
More information about the openssh-unix-dev