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

Fix taken method for straddle pill sheet #384

Merged
merged 11 commits into from
Sep 30, 2021
Merged

Conversation

bannzai
Copy link
Owner

@bannzai bannzai commented Sep 30, 2021

Abstract

履歴の服用時刻がピルシートを始めた時刻 + 日付になるパターンがあったので修正。
再現方法はピルシートを作って、番号を28番に変更して、服用記録をつけるとできる

How

  • afterLastTakenDateを表示する必要もないか。と思いestimatedEventCausedDateを表示するようにした
  • 計算式がbeginDate + totalCountという形式だったが、上記の場合はbeginDate + totalCount + (1 day - 1 second) の状態で計算が正しいと思い修正した

@bannzai bannzai merged commit a59566f into main Sep 30, 2021
@bannzai bannzai deleted the hotfix/function/record branch September 30, 2021 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant