Describe the bug
Different representation in DateTime Component for selected date and rendered date while rendering in html mode
Selected Date: 08.03.2024
Rendered Date in HTML mode: 2024-03-07T23:00:00.000Z
Version/Branch
├── @formiojs@4.18.2
To Reproduce
Steps to reproduce the behavior:
Create new form
Add component date time and choose a different format like 'dd.MM.yyyy'
Use form an put in a date in the given date time field, e.g. 08.03.2024
Choose renderMode = 'html'
Date is rendered in other format: 2024-03-07T23:00:00.000Z
Expected behavior
Date should be rendered in the given format also in renderMode = 'html'
Screenshots
Choose Dates in different Timezone Selections (of Viewer, of Submission, of Location, UTC) -> look okay
Render everything with renderMode='html' --> back to default
Additional context
I use formiojs together with angular/formio 7.0.0. In addition, I was able to recreate the same behavior in the sandbox as well as in a JSFiddle by only using formiojs independently of angular/formio -> https://jsfiddle.net/ytj8h70a
Describe the bug Different representation in DateTime Component for selected date and rendered date while rendering in html mode
Selected Date: 08.03.2024 Rendered Date in HTML mode: 2024-03-07T23:00:00.000Z
Version/Branch
├── @formiojs@4.18.2
To Reproduce Steps to reproduce the behavior:
Expected behavior Date should be rendered in the given format also in renderMode = 'html'
Screenshots
Choose Dates in different Timezone Selections (of Viewer, of Submission, of Location, UTC) -> look okay![Bildschirmfoto 2024-03-08 um 14 03 25](https://github.com/formio/formio.js/assets/16839370/2bf4bbd0-ed87-4426-ad48-e2f60b1a3c23)
Render everything with renderMode='html' --> back to default![Bildschirmfoto 2024-03-08 um 14 04 16](https://github.com/formio/formio.js/assets/16839370/0ec204d6-f7bc-47b9-a2a1-c2cc73d60b05)
Additional context I use formiojs together with angular/formio 7.0.0. In addition, I was able to recreate the same behavior in the sandbox as well as in a JSFiddle by only using formiojs independently of angular/formio -> https://jsfiddle.net/ytj8h70a