flatpressblog / flatpress

FlatPress is a lightweight, easy-to-set-up flat-file blogging engine.
https://flatpress.org
GNU General Public License v2.0
185 stars 57 forks source link

strftime() is deprecated as of PHP 8.1 #92

Closed azett closed 2 years ago

azett commented 2 years ago

Any date format config in FlatPress relies on the strftime() format (with % escape character). As of PHP 8.1, strftime() is marked as deprecated.

Reported on the support forum by stippi.

To do: Rework all date formats in FlatPress - or at least find a solution to convert strftime() format strings into date() format strings. May be helpful:

Also: Smarty 2.6.31 uses strftime() as well; need to check when there is an update. May be a good time time to switch to a more recent smarty version? [Update 2022-01-23: Yes, we need to update: #94]