Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

八字计算:日柱和时柱结果错误 #54

Open
zhangkai803 opened this issue Jun 26, 2023 · 1 comment
Open

八字计算:日柱和时柱结果错误 #54

zhangkai803 opened this issue Jun 26, 2023 · 1 comment

Comments

@zhangkai803
Copy link

您好,我在使用这个 Lib 的时候遇到了一个八字计算结果错误的问题

输入:1991-08-21 12:00:00

错误示例
image

正确示例
image

感谢作者的贡献。

@zhangkai803
Copy link
Author

环境如下:

❯ php -v
PHP 7.4.33 (cli) (built: Apr 26 2023 19:18:43) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v3.1.3, Copyright (c) 2002-2022, by Derick Rethans
    with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
{
    "overtrue/chinese-calendar": "^1.0"(1.0.2)
}

示例代码如下:

$calendar = new Calendar();
$calendar->solar("1991", "08", "21", "12");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant