title: log4net not logging properly when rolling to a new date
body: <p>Log4Net worked fine for a few months and then started giving problems when rolling out a new file for the next day.</p>
  
  <p>Problem:
  Whenever I check in the daytime or until 23:59 everything is logged but as soon as it rolls over, the rolled file will have the data of 00:00 - 06:00 hrs of the next day. All the logs of the previous day are lost.</p>
  
  <p>So for the rolledfile Service.log20100702 will contain the data 00:00 - 06:00 hrs for 03/07/2010 date and nothing else.</p>
  
  <p>The problem is mainly on the Production boxes, it's working fine on my local box.</p>
  
  <p>My rolling file appender looks like</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
        &lt;file value="C:\TTLLogs\Refunds\Ttl.Refunds.Web.UI.log"/&gt;
        &lt;appendToFile value="true" /&gt;
        &lt;datePattern value="yyyyMMdd" /&gt;
        &lt;rollingStyle value="Date" /&gt;
        &lt;maximumFileSize value="10MB" /&gt;
        &lt;maxSizeRollBackups value="100" /&gt;
        &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;header value="[Header]&amp;#xA;"/&gt;
          &lt;footer value="[Footer]&amp;#xA;"/&gt;
          &lt;conversionPattern value="%date %-5level %logger ${COMPUTERNAME} %property{UserHostAddress} [%property{SessionID}] - %message%newline"/&gt;
        &lt;/layout&gt;
        &lt;lockingModel type="log4net.Appender.FileAppender+MinimalLock" /&gt;
  &lt;/appender&gt;
  </code></pre>