Joe,

The date formatters (ABSOLUTE, DATE and ISO8601) format the date as a
local time. The simple date formatter accepts any DateTimeFormattingInfo
date pattern. Looking at the .NET docs for this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/h
tml/frlrfsystemglobalizationdatetimeformatinfoclasstopic.asp

It looks like the 'U' pattern may convert the time from local to
universal time before displaying it.

Failing that you would need to write a new layout that output what you
needed. The pattern layout in 1.2 beta 8 is not extensible, but in the
current CVS head it should be very easy to add another pattern that
converts to UTC before rendering the date.

Nicko

> -----Original Message-----
> From: Joe Joe [mailto:[EMAIL PROTECTED] 
> Sent: 27 November 2004 10:05
> To: log4net-user@logging.apache.org
> Subject: Log timestamp in UTC
> 
> Does there exist a conversion pattern specifier that logs the 
> timestamp in UTC?
> 
> _________________________________________________________________
> Stay in touch with absent friends - get MSN Messenger 
> http://www.msn.co.uk/messenger
> 
> 

Reply via email to