Nimrod_G created LOGBACK-1395: --------------------------------- Summary: Logback date output is in GMT and not in the default timezone of the host Java platform is used Key: LOGBACK-1395 URL: https://jira.qos.ch/browse/LOGBACK-1395 Project: logback Issue Type: Bug Affects Versions: 1.1.9 Environment: We have 2 services which every one of them include logback.xml configuration file and run on the same JVM.
In one of them we have an issue that the date timestamp include in the log is displayed with GMT timestamp, while on the other service the timestamp is correct as the local host time. This is issued appender: {code:java} <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${HOME:-..}/myLog.log</file> <encoder> <!-- class="ch.qos.logback.classic.encoder.PatternLayoutEncoder" --> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [thread_id=%t] %-5level %logger{50} - %msg%n</pattern> </encoder> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <!-- rollover daily --> <fileNamePattern>${HOME:-..}/%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern> <maxFileSize>1GB</maxFileSize> <maxHistory>10</maxHistory> <totalSizeCap>10GB</totalSizeCap> <cleanHistoryOnStart>true</cleanHistoryOnStart> </rollingPolicy> </appender> {code} The pattern {code:java} <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} {code} doesn't include any timezone parameter and by default should present the default timezone of the host Java platform is used (which in this case on the tested machine is GMT+3). Why it's presented in GMT? Reporter: Nimrod_G Assignee: Logback dev list -- This message was sent by Atlassian JIRA (v7.3.1#73012) _______________________________________________ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-dev