Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom setting for Time format #749

Closed
wants to merge 1 commit into from
Closed

Custom setting for Time format #749

wants to merge 1 commit into from

Conversation

jwoertink
Copy link
Member

Fixes #727

This PR allows you to set a custom format that will be used on all Time columns. As of right now, we have no way to do this on a per-column level. It's all or nothing.

I'm opening this as a draft because I'm still not sold on going this route. The fear is this gives people the wide open ability to just do default_time_format = "%Y" which would set all created_at, and updated_at to just the year, and would break all html forms using time inputs. Maybe we could just have a include_milliseconds = true? I'm not sure, but I'll keep thinking about it.

@jwoertink
Copy link
Member Author

Decided I'm going to close this. I'll open a separate PR with a different update

@jwoertink jwoertink closed this Mar 12, 2022
This pull request was closed.
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.

Time columns don't include milliseconds
1 participant