You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However the column displays the datetime in UTC and not my currently configured timezone (config('app.timezone')).
How can I achieve that the datetime is displayed relative to the configured timezone AND the column is sortable in CP?
I tried to use a computed value, but then the list ist not sortable by this column.
I already tried to use the data format U in the Data Format section in the Date fieldtype.
This entry shows 2025-07-23 13:27 in the Last Modified column in CP, even though I would expect 2025-07-23 15:27 due to the configured timezone (Europe/Berlin).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to display a column with the
updated_at
datetime of each entry of a collection in the CP.My current approach is to create following field in the blueprint:
which seems to work.
However the column displays the datetime in UTC and not my currently configured timezone (
config('app.timezone')
).How can I achieve that the datetime is displayed relative to the configured timezone AND the column is sortable in CP?
U
in theData Format
section in theDate
fieldtype.Example repo and branch
https://github.com/faltjo/statamic-example/tree/show-updated-at-in-cp
This entry shows
2025-07-23 13:27
in theLast Modified
column in CP, even though I would expect2025-07-23 15:27
due to the configured timezone (Europe/Berlin
).Beta Was this translation helpful? Give feedback.
All reactions