collecthor / surveyjs-parser

A parser for SurveyJS survey structures
3 stars 3 forks source link

Implement timestamp variable #65

Closed SamMousa closed 8 months ago

SamMousa commented 1 year ago

A variable that implements the new interface from this: https://github.com/collecthor/data-interfaces/issues/4

The text parser should use this for certain input types like datetime, datetime-local and date.

We should decide if handling is needed for timezones. (it might not be since the inputs always submit in UTC iirc)

radwouters commented 1 year ago

I do not think that timezone handling is both possible and needed.

For timezone handling, it would be necessary to include the timezone of the person taking the survey somewhere, which is not a default feature of SurveyJS IIRC.

Furthermore, the datetime-local and date questions are a completely manual input by the person taking the survey, for asking questions such as "when did you purchase this item". This is not converted to UTC, but I do not see much cases where conversion to UTC would be needed in a survey.

SamMousa commented 1 year ago

Oh yes, I got confused and thought there was a timezone conversion, but it just applies a standard format to the submitted value.

github-actions[bot] commented 8 months ago

:tada: This issue has been resolved in version 7.1.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: