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

阳历转阴历的bug #19

Open
KngStr opened this issue Jun 13, 2018 · 0 comments
Open

阳历转阴历的bug #19

KngStr opened this issue Jun 13, 2018 · 0 comments

Comments

@KngStr
Copy link

KngStr commented Jun 13, 2018

23时,对day+1
如果是5月31日,那么这里就变成 5月32日了,直接出错

498行

        if (23 == $hour) {
            // 23点过后算子时,农历以子时为一天的起始
            $day += 1;
        }
        $date = $this->makeDate("{$year}-{$month}-{$day}");

改为

        if (23 == $hour) {
            // 23点过后算子时,农历以子时为一天的起始
            $date = $this->makeDate("{$year}-{$month}-{$day} +1day");
        } else {
            $date = $this->makeDate("{$year}-{$month}-{$day}");
        }
@bedlate bedlate mentioned this issue Feb 28, 2019
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