Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTime Component do not respect given format when rendering in HTML Mode #5531

Open
Leeloo5E opened this issue Mar 8, 2024 · 0 comments
Open

Comments

@Leeloo5E
Copy link

Leeloo5E commented Mar 8, 2024

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:

  1. Create new form
  2. Add component date time and choose a different format like 'dd.MM.yyyy'
  3. Use form an put in a date in the given date time field, e.g. 08.03.2024
  4. Choose renderMode = 'html'
  5. 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
Bildschirmfoto 2024-03-08 um 14 03 25

Render everything with renderMode='html' --> back to default
Bildschirmfoto 2024-03-08 um 14 04 16

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant