title: The log4j2 CronTriggeringPolicy names the archive incorrectly
body: <p>1.My log4j2-spring.xml</p>
  <pre><code>&lt;RollingFile name=&quot;userMetadataTo&quot; fileName=&quot;${log.path}userMetadataTo_${hostName}.log&quot;
                       filePattern=&quot;${log.path}userMetadataTo_%d{yyyy-MM-dd}_${hostName}_%i.log&quot;&gt;
      &lt;PatternLayout pattern=&quot;%msg%n&quot;/&gt;
      &lt;CronTriggeringPolicy schedule=&quot;59 59 23 * * ?&quot;/&gt;
  &lt;/RollingFile&gt;
  </code></pre>
  <p>2.The archive log
  <a href="https://i.stack.imgur.com/dGVYW.png" rel="nofollow noreferrer">archive log</a>
  It was filed on the 15th at 23:59:59, but the file name is yesterday,
  can anyone help me?</p>