Issue Type: Bug Bug
Affects Versions: 1.1.3
Assignee: Logback dev list
Components: logback-core
Created: 28/Oct/15 12:46 PM
Description:

1.1.3 introduced the idea that we could specify a TZ in the

<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>$

{LOG_DIR}

/myapp.%d

{yyyy-MM-dd,UTC}

.log</FileNamePattern>
</rollingPolicy>

This doesn't work for me and it looks like a bug was found with this and fixed on master by "s4nk" on 18th Mar
https://github.com/qos-ch/logback/commits/master/logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedFileNamingAndTriggeringPolicyBase.java

The source for the 1.1.3 build (created 24th March 2015) does not appear to contain this fix

(from Maven Central 1.1.3 source jar)
Ie it has
public void start() {
....
rc = new RollingCalendar();

rather than what was committed in the fix which checks the TZ before creating the calendar:
(from https://github.com/qos-ch/logback/commit/077e45c8f71045d75519e9c059ecbd1faee5cd09)

if (dtc.getTimeZone() != null)

{ rc = new RollingCalendar(dtc.getTimeZone(), Locale.getDefault()); }

else

{ rc = new RollingCalendar(); }

Given the release build was created on 24th March I think something was a bit screwy in how the build was created as the above fix should have been picked up in 1.1.3 if it was done against master.

Would it be possible for you to make a new official 1.1.4 release that really contains the fix ? I know I can create a local one but I'd rather not fork the project unless I really have to.

Environment:

Linux/Windows

Project: logback
Labels: timzone
Priority: Major Major
Reporter: john foxon
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira