Skip to content

Age computed wrongly when date of birth is in future #1139

Open

Description

Describe the bug
Modify the date-of-birth of a patient to be in the future.
No matter how many years into the future, age shows up as -xx days old.

Component
SDC library

To Reproduce
Steps to reproduce the behavior:

  1. Launch demo app.
  2. Choose a patient from the list.
  3. Edit their birthdate so it is in the future(at least 1 year from now).
  4. Navigate back to list.
  5. See error

Expected behavior
Either disallow dates in the future, or compute the diff properly.

Screenshots
7ULAb4DmueiYQRj
4MBTAanQg4fSc8G

Smartphone (please complete the following information):

  • Device: Pixel3 emulator
  • Version 28

Additional context
Add any other context about the problem here.

Would you like to work on the issue?
Please state if this issue should be assigned to you or who you think could help to solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    P3Low priority issueeffort:xsmallExtra small effort - 1 daytype:bugSomething isn't working

    Type

    No type

    Projects

    • Status

      Icebox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions