logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Hsueh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LOG4J2-698) How do I adjust for daylight savings?
Date Wed, 02 Jul 2014 22:52:24 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bryan Hsueh updated LOG4J2-698:
-------------------------------

    Description: How come <PatternLayout pattern="%d{HH:mm:ss.SSS}{CST} %-5level- %msg%n"/>
 does not produce the same log timestamp as <PatternLayout pattern="%d{HH:mm:ss.SSS}{GMT-5}
%-5level- %msg%n"/>?  Isn't CST GMT-5 right now?  It's logging CST as if it's GMT-6, which
isn't until winter.    (was: I am using <PatternLayout pattern="%d{HH:mm:ss.SSS}{CST} %-5level-
%msg%n"/> and consuming time in GMT.  When I cross daylight savings, my log hour changes.
 How do I make this consistent?  Specifically, I'm UTC-5 right now, and come winter, I want
to log as UTC-6.  Thanks.)

> How do I adjust for daylight savings?
> -------------------------------------
>
>                 Key: LOG4J2-698
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-698
>             Project: Log4j 2
>          Issue Type: Question
>          Components: Layouts
>    Affects Versions: 2.0-rc2
>         Environment: Ubuntu 12.04
>            Reporter: Bryan Hsueh
>
> How come <PatternLayout pattern="%d{HH:mm:ss.SSS}{CST} %-5level- %msg%n"/>  does
not produce the same log timestamp as <PatternLayout pattern="%d{HH:mm:ss.SSS}{GMT-5} %-5level-
%msg%n"/>?  Isn't CST GMT-5 right now?  It's logging CST as if it's GMT-6, which isn't
until winter.  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message