Skip to content

Datetime Picker completely broken for none UTC carbon objects #1112

@christian-forgacs

Description

@christian-forgacs

Describe the bug
In our laravel app we use timezone Europe/Berlin. We found a few bugs:

  1. Casted model date properties and "without-time" doesn't work correctly. It works only if we change APP_TIMEZONE back to UTC and use "without-timezone".
  2. The time-format doesn't work. If I set this to 24 nothing happens. I find no usage in your ts files of your "is12h" property set in your index.ts of date-picker.

To Reproduce
Steps to reproduce the behavior:

  1. Set APP_TIMEZONE to e.g. Europe/Berlin
  2. Create a model with a date column and cast it to a date to receive a carbon object
  3. Create a form with an datetickepicker element and set without-time
  4. On loading the model the date is UTC (e.g. Carbon object is 2025-09-30 00:00:00 +2 for Berlin, displayed date is 2025-09-29 the UTC date)
  5. If I change the date to e.g. 2025-09-15 this value stored correctly but on reload form shows 2025-09-14.

Expected behavior
Correct timezone handling (also for without-time) and correct implementation of time-format property (24 time format without AM/PM) in datetimepicker.

Dependencies

  • WireUI Version: 2.4.3
  • Laravel Version: 12.25.0
  • Alpine.js Version: 3.14.9
  • Livewire Version: 3.6.4
  • Lang: de_DE

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions