Skip to content

[6.x] Different date field behaviour #12585

@marcorieser

Description

@marcorieser

Bug description

I just noticed that the date field for dated collections behaves differently from a date field for non-dated collections or just a plain date field in the blueprint.

I have a dated collection, and the date field doesn't have time enabled. When creating a new entry, it is saved as 2025-09-26-0657.test.md. I would assume it would save either without a time (2025-09-26.test.md) or set it to midnight (2025-09-26-0000.test.md).

This is especially weird because any other date field on a blueprint uses midnight when time is disabled for the field.

I'm not sure if that is the existing behaviour since ever, but I'd argue that setting just the date on an entry means "today".

How to reproduce

  • Setup a new Statamic v6 site
  • Create a dated collection
  • Ensure the date field is without time enabled
  • Add another date field without time enabled
  • Create an entry

Logs

Environment

Environment
Application Name: handschin & handschin
Laravel Version: 12.31.1
PHP Version: 8.3.26
Composer Version: 2.8.11
Environment: local
Debug Mode: ENABLED
URL: statamic-handschin.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

Storage
public/storage: NOT LINKED

Livewire
Livewire: v3.6.4

Statamic
Addons: 3
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.0.0-alpha.9 PRO

Statamic Addons
marcorieser/statamic-livewire: dev-statamic-6
marcorieser/statamic-vitals: dev-statamic-6
marcorieser/tailwind-merge-statamic: dev-statamic-6

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions