-
Notifications
You must be signed in to change notification settings - Fork 81
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
feat: add fullWithSeconds
datetime format
#1720
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/contentful-apps/forma-36/6KozccHMAAy78BjjVSfUcLyeAzJ5 |
Maybe we could have use-case-based naming? e.g. |
@fabe That might cause issues if we somewhere want to display milliseconds as well. But I agree that In general I love the DateTimeFormat interface where you enable parts with boolean flags. Having something like this in forma with the flags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forma-v4
branch was already merged to master. Please change the base to master
9d65734
to
c2bddc3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
I will only ask you to make the value camelCase, that's what we've been using for props
(e.g. spacingXl, colorBlue, endIcon, etc)
@bgutsol @gui-santos Both happy with |
Don't have a strong preference, but |
@andipaetzold |
I'd go for |
fullWithSeconds
datetime format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andipaetzold please, update from the latest master to get ci: check links fixed
I'd need an approval in chromatic in order to merge this PR |
@andipaetzold done |
Any idea why the released types are not up to date? https://unpkg.com/@contentful/f36-datetime@4.1.0/dist/types.d.ts
|
@andipaetzold is it only types or the code is also missing? |
@suevalov The code itself is there. (Search for |
@andipaetzold we redeployed it, and now it has proper types in v |
Adds a new DateTime format
full-with-seconds
This is very similar to the default
full
format but also displays seconds.I am not happy with the name, so let me know if you have a better idea.