Learn icon indicating copy to clipboard operation
Learn copied to clipboard

1464---Adding-publish-and-updated-dates-dc

Open unprintedch opened this issue 1 year ago • 1 comments

#1464

Add published/modified date.

Modified date is displayed conditionally We use the date to make sure there is at least a day difference.

unprintedch avatar Apr 07 '24 15:04 unprintedch

I did not use the nice get_post_timestamp to get the timestamps since it compares the date and time, and it is better to display only if there is a "day difference". It compares with "!=" since the modified date must be after... This is not DRY, we could make a function since it repeats in two places.

unprintedch avatar Apr 07 '24 15:04 unprintedch