On 2011-10-27, SEGERS Steven (CNH) wrote:

> The FAQ
> (http://logging.apache.org/log4net/release/faq.html#distributed) seems
> to suggest that the RemotingAppender sends all timestamps to the
> server in utc format, but this does not seem to work for us.

I think the wording in the FAQ is unfortunate.  It also states 

,----
| they all appear in the same time zone as the host creating the logfile
`----

which is what you describe as well.

> When I look at the code, I see that the timestamp of the logging event
> is created using DateTime.Now (so without any timezone info), and I
> cannot find anything in the RemotingAppender that does any conversion
> of this timestamp. Am I missing something obvious or is the claim in
> the FAQ not correct?

It would probably better say time is transmitted without any timezone
information rather than UTC, at least it describes the effect correctly.

Currently the only thing you can do is what Ron suggests and "tunnel"
the timezone as a property, evaluate it at the server and adapt the
timestamp as needed before sending it to the database.

Stefan

Reply via email to