Skip to content

修改日期与星期对应错误#140

Open
niusibao wants to merge 2 commits into
MagicMashRoom:masterfrom
niusibao:master
Open

修改日期与星期对应错误#140
niusibao wants to merge 2 commits into
MagicMashRoom:masterfrom
niusibao:master

Conversation

@niusibao

@niusibao niusibao commented Mar 1, 2018

Copy link
Copy Markdown

No description provided.

@MagicMashRoom

Copy link
Copy Markdown
Owner

确定可以解决错误嘛?
测试过吗?

@niusibao

Copy link
Copy Markdown
Author

测试过了,本来就是一个判断的失误
if (attr.getWeekArrayType() == CalendarAttr.WeekArrayType.Sunday) { currentWeekLastDay = Utils.getSaturday(seedDate); } else { currentWeekLastDay = Utils.getSunday(seedDate); }
改成
if (attr.getWeekArrayType() == CalendarAttr.WeekArrayType.Monday) { currentWeekLastDay = Utils.getSaturday(seedDate); } else { currentWeekLastDay = Utils.getSunday(seedDate); }

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

Successfully merging this pull request may close these issues.

2 participants