statamic / ideas

đŸ’¡Discussions on ideas and feature requests for Statamic
https://statamic.dev
32 stars 1 forks source link

Date fieldtype: Ability to use `time_enabled` alongside `mode: range` #1250

Open marcorieser opened 3 weeks ago

marcorieser commented 3 weeks ago

Bug description

I just discovered that a date field with mode: range and time_enabled: true does not show the time inputs.

Bildschirmfoto 2024-10-29 um 08 53 20

Not sure if that's a bug or a feature request.

How to reproduce

Add a date field to a blueprint like below and visit the entry edit form.

handle: booked_from_to
field:
  mode: range
  time_enabled: true
  type: date
  display: 'Booked from to'
  validate:
    - required

Logs

No response

Environment

Environment
Application Name: Statamic
Laravel Version: 11.29.0
PHP Version: 8.3.13
Composer Version: 2.7.7
Environment: local
Debug Mode: ENABLED
URL: statamic-gebetskalender.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.35.0 Solo

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

duncanmcclean commented 3 weeks ago

Moving to the ideas repository since the time field is intentionally hidden when using mode: range.