From bb19c5ee41e59a4796c06b578639372f7bb7ac2c Mon Sep 17 00:00:00 2001 From: NoerNova Date: Thu, 10 Oct 2024 01:35:43 +0700 Subject: [PATCH] Update: updated Shan's years number due to miss calculated --- shannlp/util/date.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shannlp/util/date.py b/shannlp/util/date.py index b2cec09..34921ab 100644 --- a/shannlp/util/date.py +++ b/shannlp/util/date.py @@ -106,7 +106,7 @@ def convert_years(year: str, src="mo", target="ad") -> str: if target == "ad": output_year = str(int(year) - 543) elif target == "mo": - output_year = str(int(year) - 449) + output_year = str(int(year) - 448) elif target == "ga": output_year = str(int(year) - 1181) elif src == "ad": @@ -120,7 +120,7 @@ def convert_years(year: str, src="mo", target="ad") -> str: if target == "ad": output_year = str(int(year) - 94) elif target == "be": - output_year = str(int(year) + 449) + output_year = str(int(year) + 448) elif target == "ga": output_year = str(int(year) - 732) elif src == "ga":