This is an automated email from the ASF dual-hosted git repository.
rgoers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/master by this push:
new cfca8f5 Get date in correct timezone
cfca8f5 is described below
commit cfca8f5866f54867429dcd1bc93e798a0471cede
Author: Ralph Goers <[email protected]>
AuthorDate: Sat Apr 4 22:08:26 2020 -0700
Get date in correct timezone
---
.../src/main/java/org/apache/logging/log4j/core/filter/TimeFilter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/TimeFilter.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/TimeFilter.java
index 4d5e9ab..c6f0799 100644
---
a/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/TimeFilter.java
+++
b/log4j-core/src/main/java/org/apache/logging/log4j/core/filter/TimeFilter.java
@@ -100,7 +100,7 @@ public final class TimeFilter extends AbstractFilter {
private TimeFilter(final LocalTime start, final LocalTime end, final
ZoneId timeZone, final Result onMatch,
final Result onMismatch) {
- this(start, end, timeZone, onMatch, onMismatch, LocalDate.now());
+ this(start, end, timeZone, onMatch, onMismatch,
LocalDate.now(timeZone));
}
private synchronized void adjustTimes(long currentTimeMillis) {