-
-
Notifications
You must be signed in to change notification settings - Fork 597
Description
Bug description
I have a simple date field in a replicator. When outputting the date on the frontend using antlers if I use the format modifier AND the date field is empty, it shows todays date. As soon as I remove the format modifier todays date goes away.
Empty date field using this show todays date even though the field is empty.
{{ date_field | format('m-d-y') }}
Empty date field using no modifier shows nothing. This is right.
{{ date_field }}
How to reproduce
Make date field (not sure if it has to be in a replicator).
Add it to a frontend template via antlers with the format modifier.
If the date is empty it shows todays date.
Go to frontend and edit antlers to remove the format modifier.
If the date is empty it shows nothing (this is expected behavior).
Logs
Nothing...Environment
Environment
Application Name: App
Laravel Version: 12.38.0
PHP Version: 8.3.20
Composer Version: 2.8.8
Environment: local
Debug Mode: ENABLED
URL: app.test
Maintenance Mode: OFF
Timezone: America/Denver
Locale: en
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: log
Queue: sync
Session: file
Storage
C:\_statamic\app\public\storage: NOT LINKED
Livewire
Livewire: v3.6.4
Statamic
Addons: 9
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.69.0 PRO
Statamic Addons
aryehraber/statamic-logbook: 3.3.0
aryehraber/statamic-uuid: 2.3.0
doefom/currency-fieldtype: 1.4.1
marcorieser/statamic-live-search: 3.1.0
marcorieser/statamic-livewire: 5.0.0
ndx/statamic-bard-color-picker: 2.1.0
pixelastronauts/statamic-autocomplete-address-field: 1.0.0
statamic/collaboration: 1.0.1
statamic/eloquent-driver: 4.35.0
Statamic Eloquent Driver
Asset Containers: file
Assets: file
Blueprints: file
Collection Trees: file
Collections: file
Entries: eloquent
Fieldsets: file
Form Submissions: file
Forms: file
Global Sets: file
Global Variables: file
Navigation Trees: file
Navigations: file
Revisions: file
Sites: file
Taxonomies: file
Terms: file
Tokens: fileInstallation
Fresh statamic/statamic site via CLI
Additional details
No response