-
-
Notifications
You must be signed in to change notification settings - Fork 205
Open
Labels
Description
Description
When you have a date question in a form and view a submission in KPI, the date shifts one day back on a computer that is behind UTC timezone.
Steps to reproduce
- Switch your computer timezone to e.g. UTC -5
- Deploy the following XLSForm and submit the form once. Use today's date in the date picker.
| type | name | label | required | calculation |
|---|---|---|---|---|
| start | start | |||
| end | end | |||
| date | activity_date | Date of the activity | TRUE |
- Navigate to table view and note that the date captured shows today's date
- Click the view icon to open the single submission view modal and note that the date has shifted back by one day.
- (Click view to open in Enketo and note that the date is today's date)
Expected behaviour
Submission view modal shows the actual date.
Actual behaviour
Submission view modal shows the date as the actual day minus one day.
Additional context
This issue has existed at least since 2022. See the following threads on the Community:
- https://community.kobotoolbox.org/t/inconsistencies-in-dates-when-viewing-data/35693
- https://community.kobotoolbox.org/t/error-in-date-seen-in-view-utility/45127
Related to #3943?