Skip to content

When a calculation's value is now, set the type to dateTime #115

@larryweya

Description

@larryweya

The default type is string which results in ODK collect filling in just the date portion of the timestamp. With the value set to dateTime, the timestamp is filled correctly.

<bind calculate="now()" nodeset="/leachate_monthly_register/timestamp_1" type="string"/>

vs

<bind calculate="now()" nodeset="/leachate_monthly_register/timestamp_1" type="dateTime"/>

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