This is an automated email from the ASF dual-hosted git repository.

tcodehuber028 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/amoro.git


The following commit(s) were added to refs/heads/master by this push:
     new 5bca24382 [Hotfix] Fix the Chinese characters in the code (#2784)
5bca24382 is described below

commit 5bca24382c65439411271acec1276fd29c90ab0a
Author: Check Null <[email protected]>
AuthorDate: Thu Apr 25 17:19:45 2024 +0800

    [Hotfix] Fix the Chinese characters in the code (#2784)
    
    * Translate to "1461"
    
    * Convert Chinese characters to Int
---
 .../src/main/java/org/apache/amoro/flink/util/DateTimeUtils.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/amoro-mixed-format/amoro-mixed-format-flink/amoro-mixed-format-flink-common/src/main/java/org/apache/amoro/flink/util/DateTimeUtils.java
 
b/amoro-mixed-format/amoro-mixed-format-flink/amoro-mixed-format-flink-common/src/main/java/org/apache/amoro/flink/util/DateTimeUtils.java
index 6bbb21b68..77e9f83a4 100644
--- 
a/amoro-mixed-format/amoro-mixed-format-flink/amoro-mixed-format-flink-common/src/main/java/org/apache/amoro/flink/util/DateTimeUtils.java
+++ 
b/amoro-mixed-format/amoro-mixed-format-flink/amoro-mixed-format-flink-common/src/main/java/org/apache/amoro/flink/util/DateTimeUtils.java
@@ -958,8 +958,8 @@ public class DateTimeUtils {
     int j = julian + 32044;
     int g = j / 146097;
     int dg = j % 146097;
-    int c = (dg / '躬' + 1) * 3 / 4;
-    int dc = dg - c * '躬';
+    int c = (dg / 36524 + 1) * 3 / 4;
+    int dc = dg - c * 36524;
     int b = dc / 1461;
     int db = dc % 1461;
     int a = (db / 365 + 1) * 3 / 4;

Reply via email to