This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new 9ea01298f [Bug] [connector-fake] Fake date calculation error(#2573)
9ea01298f is described below
commit 9ea01298f18803e0bdb8dc13dab52aaa1a0ee014
Author: Xiao Zhao <[email protected]>
AuthorDate: Wed Aug 31 13:33:06 2022 +0800
[Bug] [connector-fake] Fake date calculation error(#2573)
---
.../seatunnel/connectors/seatunnel/fake/source/FakeRandomData.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/seatunnel-connectors-v2/connector-fake/src/main/java/org/apache/seatunnel/connectors/seatunnel/fake/source/FakeRandomData.java
b/seatunnel-connectors-v2/connector-fake/src/main/java/org/apache/seatunnel/connectors/seatunnel/fake/source/FakeRandomData.java
index a0dfa4111..f1a75ffdf 100644
---
a/seatunnel-connectors-v2/connector-fake/src/main/java/org/apache/seatunnel/connectors/seatunnel/fake/source/FakeRandomData.java
+++
b/seatunnel-connectors-v2/connector-fake/src/main/java/org/apache/seatunnel/connectors/seatunnel/fake/source/FakeRandomData.java
@@ -125,7 +125,7 @@ public class FakeRandomData {
return LocalDateTime.of(
LocalDateTime.now().getYear(),
RandomUtils.nextInt(1, 12),
- RandomUtils.nextInt(1, LocalDateTime.now().getDayOfMonth()),
+ RandomUtils.nextInt(1, 28),
RandomUtils.nextInt(0, 24),
RandomUtils.nextInt(0, 59)
);