-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Document: creationDate
and modificationDate
#2536
Labels
Comments
Related issue: #1375 |
@diegomura Thank you so much 🚀 |
@diegomura Unfortunately, this still doesn't work.
|
Thanks! Merged. It shuold work, just types are broken :) Will publish soon |
@diegomura It actually didn't work when I passed those props into |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
It would be great to have an ability to manipulate with "creation date" and "modification date" settings in a flexible way, so each consumer can decide on their own how to handle those. For example, I'd really like to have an ability to set some specific "creation date" at a point I started to work on my document, and then change the "modification date" every time I update it.
Describe alternatives you've considered
At this point, the only way I found to "lock" the "creation date" is to lock my system date:
Additional context
Here's how I see it could be solved API-wise, without any breaking changes.
Introduce two new optional props to
Document
:creationDate
modificationDate
When
creationDate
is not set, "creation date" metadata will be taken based on current system date. If set, it'll be used.When
modificationDate
is not set, "modification date" metadata won't be handled (as it is now). If set, it'll be used.Should be straightforward.
The text was updated successfully, but these errors were encountered: