-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
9.0: FEATURE: Add created/last modified dates to Nodes #4092
Comments
With that we could implement sth like: function lastPublicationDate(): \DateTimeImmutable {
return $this->lastModifiedAt ?? $this->createdAt;
} And |
The projection logic could be sth like: creating event
modifying event
Note: We need to check whether the metadata is correctly kept when rebasing/publishing events |
FYI: I created an issue (neos/neos-ui#3434) so we don't forget to customize the output in the UI afterwards. Perhaps there are other places in the UI, but this one immediately came to mind. |
This needs a follow-up that fixes timezone handling. i.e. when server and db timezone is not equal we currently get invalid timestamps.
(@dlubitz thanks for raising) |
This is not about timezones, but: https://stackoverflow.com/questions/10450644/how-do-you-explain-the-result-for-a-new-datetime0000-00-00-000000 We could change the default value of the creation columns to |
Why would we ever have a created timestamp of 0000.... ? Even IF we import from the old repo and can't take over from there for whatever reason using the timestamp of that import is surely a better information than 0000 ? |
@kitsunet if we import from the old repo, we already use the current timestamp. |
Makes the columns `created` and `originalcreated` to default to the current timestamp in order to prevent issues with values of `0000-00-00 00:00:00` Related: #4092
@bwaidelich this can be closed, no? |
I have a question how the new time stamps compare to the 8.3's.
|
Legend:
c
created eventm
modified eventn
the nodet
point in timeAt
t1
:n
created
:t1
originalCreated
:t1
lastModified
:null
originalLastModified
:null
At
t2
:n
created
:t1
originalCreated
:t1
lastModified
:t2
originalLastModified
:t2
At
t6
:n
:created
:t1
originalCreated
:t1
lastModified
:t2
originalLastModified
:t2
n'
:created
:t3
originalCreated
:t1
lastModified
:t4
originalLastModified
:t2
n''
:created
:t5
originalCreated
:t1
lastModified
:t6
originalLastModified
:t2
The text was updated successfully, but these errors were encountered: