Skip to content

Widget is initialised with wrong date string for European locals #85

@christianwgd

Description

@christianwgd

Describe the bug
I'm trying to edit a date or datetime object. If this has a value of "23.11.2022 19:52" (db value "2022-11-23 19:52") it is displayed in the form as "20.11.0023 19:52". This is a problem for European locals ("de", "fr", "es", "it", ...), but not for "en-us".

I've created a minimum example to investigate the problem in https://github.com/christianwgd/datepicker

Expected behavior
Show the date string in the form as "23.11.2022 19:52"

Screenshots
See example app.

Setup Information (please complete the following information):

  • OS: macOS 12.6
  • Browser Tested with recent Safari, Chrome, FireFox
  • Python version 3.10.4
  • Django version 4.1.3
  • Bootstrap version 5
  • jQuery version 3.6.0

[x] I have followed the [configuration instructions][configuration_page] and checked out the
[common error troubleshooting][troubleshooting_page] page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions