This is an automated email from the ASF dual-hosted git repository.
rgoers pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new 2158ee0 Get date in correct timezone
2158ee0 is described below
commit 2158ee01843c1a4959c43b5b2577ca12d40abf69
Author: Ralph Goers <[email protected]>
AuthorDate: Sat Apr 4 22:02:46 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 5f68495..0cd7402 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) {