You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The date_human template filter raises an error when the value passed to it is null, which can happen with nullable date fields like date_published. I discovered this when previewing an article that had not been published.
Proposed solution
Add a check at the beginning of the function for the value being falsy, and return an empty string.