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

Bulk editing date fields does not display the correct locale? #42

Open
tobystokes opened this issue Apr 29, 2022 · 0 comments
Open

Bulk editing date fields does not display the correct locale? #42

tobystokes opened this issue Apr 29, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@tobystokes
Copy link

Describe the bug
In a multisite setup.
If doing a bulk edit of a datetime field on the non-primary site*, the date is being saved in a different format from that the UI showed it in.

i.e. I use the datepicker to choose April 10. The date shows as 10/05/2022 as I would expect from my user local settings (en-GB)
After saving, if I examine the entry, the field now reads 05/10/2022 = 5 Oct

Environmental Info

  • Craft CMS Version:
  • Multi-site Mode Yes
  • Plugin Version: 3.7.39
  • PHP Version: 8
  • Database Driver MariaDB:

Additional context
*I'm guessing it's related to the locale of the site, not the user. I think the formatting of the field should reflect the locale of the user, but it's not being picked up in the bulk-edit modal?

@tobystokes tobystokes added the bug Something isn't working label Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant