Skip to content

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

Open
niusibao wants to merge 2 commits intoMagicMashRoom:masterfrom
niusibao:master
Open

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

Conversation

@niusibao
Copy link

@niusibao niusibao commented Mar 1, 2018

No description provided.

@MagicMashRoom
Copy link
Owner

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

@niusibao
Copy link
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