Skip to content

Consider date of birth at shift time, not at current time #1539

Open
@felixrindt

Description

@felixrindt

Is your feature request related to a problem? Please describe.

When getting an indicator for minor participants in event detail, checking minimum age and in the youthwarden plugin, we should be sure to consider age at shift start time (and explain in a tooltip that that is what we do).

Describe the solution you'd like

The is_minor functions get a date kwarg for which to consider the age. callers use the date of shift start time in the tenants timezone to compute age.

Describe alternatives you've considered

We keep the current way of considering the current age. I think this is less what people want, esp. those waiting to turn 18. Any way, it should be consistent

Metadata

Metadata

Assignees

No one assigned

    Labels

    [C] enhancementChanges to an existing feature making it better[P] minorfeatures or bugs that can wait for some more time

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions