Datepicker (datetime) no time at preview mode
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.5k
- Forks
- 246
- Avg merge
- 19h 2m
- Merged PRs (30d)
- 7
Description
Winter CMS Build
dev-develop
PHP Version
8.1
Database engine
MySQL/MariaDB
Plugins installed
No response
Issue description
Like the title suggests, datepicker field with datetime does not show time in preview mode
created_at:
label: Created at
type: datepicker
mode: datetime
format: d/m/Y
default: now
span: storm
cssClass: col-xs-4
Ofcourse, the format does not suggest any time.
This format however does, but it shows 00:00 in the date field.
created_at:
label: aic.account::lang.orders.created_at
type: datepicker
mode: datetime
format: d/m/Y H:i
default: now
span: storm
cssClass: col-xs-4
Steps to replicate
See code above
Workaround
A different field for preview
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the datepicker configuration shown in the report, using datetime mode in preview mode and the two supplied format values. Trace the datepicker preview rendering and verify that the displayed time follows the configured format and does not become 00:00; add or update coverage if the relevant test location is identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100