Skip to content

Validation of dateTime widget against now() fails #637

@yanokwa

Description

@yanokwa

Software and hardware versions

Collect v2012.2

Problem description

A constraint of . <= now() on a dateTime widget doesn't constrain when I enter today's date plus an hour later than now. Putting a day later than now works. It would seems only the date is being checked.

In my debugging, when I output the dateTime value in a note, it only shows the date. Using the jump button shows me both date and time. The XML that is persisted shows <rdt_start_time>2021-06-15T01:33:00.000-07:00</rdt_start_time>.

datetime.xlsx is the form I used.

Other information

Enketo shows the datetime, but also seems to check the constraint against only the date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions