Skip to content

Time field and modifier#1810

Merged
jasonvarga merged 2 commits into
6.xfrom
time-stuff
Jun 9, 2026
Merged

Time field and modifier#1810
jasonvarga merged 2 commits into
6.xfrom
time-stuff

Conversation

@jasonvarga

Copy link
Copy Markdown
Member

This adds some extra information about the time fieldtype, and documents the new format_time modifier.

See statamic/cms#13799

@duncanmcclean

Copy link
Copy Markdown
Member

Do we need to mention this in the upgrade guide?

CleanShot 2026-02-03 at 09 45 26

@jasonvarga

Copy link
Copy Markdown
Member Author

Do we need to mention this in the upgrade guide?

Isn't that exactly where that screenshot is from?

@duncanmcclean

duncanmcclean commented Feb 3, 2026

Copy link
Copy Markdown
Member

Sorry, I meant mentioning the new modifier in the upgrade guide. The screenshot made that message confusing 😅

If someone updates to v6, and that option is enabled, wouldn't the format modifier suddenly output the wrong time? They'd need to adopt the format_time modifier instead?

@jasonvarga

Copy link
Copy Markdown
Member Author

No, the formatTime modifier parses the date value itself - it doesn't use the carbon() method, which is what uses that setting.

@jasonvarga jasonvarga merged commit 25f7c5b into 6.x Jun 9, 2026
@jasonvarga jasonvarga deleted the time-stuff branch June 9, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants