Dr_Bob wrote: ↑Wed Mar 03, 2021 3:00 am
Last edited by [myusername] on Wed Dec 31, 1969 7:00 pm, edited 0 times in total.
Reason: ''
It's not obvious, but there is a hint there with the
"Reason:" being displayed as an empty set of single quotes (
''
). That doesn't mean "the edit reason was blank"; that means "the edit reason contains two characters, and is a set of empty single quotes." i.e. It's a non-empty edit reason.
Everything else in the display seems to suggest "there wasn't actually any edit reason" at the time the edit was submitted, and the edit reason was intended to be blank. Because when no edit reason is provided when submitting the edit, phpBB does not update
post_edit_count
or
post_edit_time
during the edit submission.
But when it came time to
display the post,
now phpBB is behaving as though the edit reason is
''
rather than blank. And so phpBB is attempting to compose the EDITED_MESSAGE template variable that styles will display using the data phpBB normally uses for this, but neither
post_edit_count
nor
post_edit_time
are defined for this post.
Which is what gives the unexpected "edited 0 times in total" display, of course. But that's also why the time stamp is consistently "Wed Dec 31, 1969 7:00 pm", too. Because that's also "just a zero value", but with your time zone offset applied to the zero value. i.e. Not a matter of your server time being wrong or 1969, but simply "an unexpectedly zero value being displayed through normal time display mechanisms."
You previously asserted that you've tried re-editing posts now, such that the time should have been "today":
Dr_Bob wrote: ↑Wed Mar 03, 2021 3:00 am
-re-editing a post
Which implies "this is an ongoing problem, and happens even to posts I edit right now." Otherwise I was liking P_I's idea of somehow just "old posts" or maybe a restored database backup having performed a one-time mangling of the otherwise-blank
post_edit_reason
columns, such that now they contained a pair of single quotes instead.
To be an ongoing issue though, that would make me want to suspect that an extension is smashing the post row data during viewtopic.php. Do you have any extensions added to phpBB which perhaps you could disable at least as a test, to see if the behavior continues?