Bug description
I am not sure if this is a bug, but it confused me. 'localize_dates_in_modifiers' => false, behaves differently for {{ date }} depending on how the variable is used in the template.
Use case:
{{ date }} => variable from dated collection
{{ second_date }} => just an other date fieldtype

How to reproduce
Now, for {{ date }} it depends on whether the following template is used with or without the underlined first line of text:
display_timezone is set to: 'display_timezone' => 'Europe/Zurich',

With first text line
'localize_dates_in_modifiers' => false
Why not 18:25? …as described here

'localize_dates_in_modifiers' => true
Expected behaviour

Without first text line
'localize_dates_in_modifiers' => false
Expected behaviour

'localize_dates_in_modifiers' => true
Expected behaviour

Logs
Environment
EnvironmentApplication Name: StatamicLaravel Version: 12.50.0PHP Version: 8.3.30Composer Version: 2.9.3Environment: localDebug Mode: ENABLEDURL: date-test.testMaintenance Mode: OFFTimezone: UTCLocale: de_CHCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: CACHEDDriversBroadcasting: logCache: fileDatabase: sqliteLogs: stack / singleMail: logQueue: syncSession: fileStoragepublic/storage: NOT LINKEDStatamicAddons: 0Sites: 1Stache Watcher: Enabled (auto)Static Caching: DisabledVersion: 6.2.4 PRO
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
Bug description
I am not sure if this is a bug, but it confused me.
'localize_dates_in_modifiers' => false,behaves differently for {{ date }} depending on how the variable is used in the template.Use case:
{{ date }} => variable from dated collection
{{ second_date }} => just an other date fieldtype
How to reproduce
Now, for {{ date }} it depends on whether the following template is used with or without the underlined first line of text:
display_timezone is set to:
'display_timezone' => 'Europe/Zurich',With first text line
'localize_dates_in_modifiers' => false
Why not 18:25? …as described here
'localize_dates_in_modifiers' => true
Expected behaviour
Without first text line
'localize_dates_in_modifiers' => false
Expected behaviour
'localize_dates_in_modifiers' => true
Expected behaviour
Logs
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response