[ 
https://issues.apache.org/jira/browse/LOG4J2-1149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15083256#comment-15083256
 ] 

Daniel Marcotte commented on LOG4J2-1149:
-----------------------------------------

Thanks for the quick answer!

If you look at Wikipedia's explanation of the ISO-8601, section "UTC" : 
https://en.wikipedia.org/wiki/ISO_8601#Times

{quote}
If the time is in UTC, add a Z directly after the time without a space. Z is 
the zone designator for the zero UTC offset. "09:30 UTC" is therefore 
represented as "09:30Z" or "0930Z". "14:45:15 UTC" would be "14:45:15Z" or 
"144515Z".
UTC time is also known as 'Zulu' time, since 'Zulu' is the NATO phonetic 
alphabet word for 'Z'.
{quote}

That's why I assumed that using something like 
{code}"%d{ISO8601_BASIC}{UTC}"{code} would give me something like: 
* 20160104T204256,048Z
or something like
* 20160104T204256,048+00
or even
* 20160104T204256,048+00:00

I think it's a bug to leave it blank because it means that the date is "local" 
while we manually added the {UTC} timezone flag.

> PatternLayout predefined date pattern with time zone always renders default 
> date format
> ---------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-1149
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1149
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Pattern Converters
>    Affects Versions: 2.4
>            Reporter: Matt Barron
>            Assignee: Remko Popma
>             Fix For: 2.4.1
>
>
> The date pattern
> {code}
> "%d{ISO8601}{UTC}"
> {code}
> is rendered as the default date format (yyyy-MM-dd HH:mm:ss,SSS) instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to