This warning makes the export of an RSS feed impossible: Deprecated: Function strptime() is deprecated in /.../include/functions_notification.inc.php on line 604
How to reproduce:
Expected:
have a valid RSS feed
Environment:
Piwigo 13.6.0
PHP8.1
This warning makes the export of an RSS feed impossible:
`Deprecated: Function strptime() is deprecated in /.../include/functions_notification.inc.php on line 604`
How to reproduce:



Expected:
have a valid RSS feed
Environment:
Piwigo 13.6.0
PHP8.1
<!-- github-sync-id:1650309176 -->
hello
the strptime() function is deprecated since php 8.1
try replacing this with date_parse_from_format
604 $exploded_date = date_parse_from_format($date, '%Y-%m-%d %H:%M:%S'); 607 612 if (!function_exists('date_parse_from_format')) 614 function date_parse_from_format($date, $fmt) 617 die('Invalid date_parse_from_format format '.$fmt);
hello
the strptime() function is deprecated since php 8.1
try replacing this with date_parse_from_format
`604 $exploded_date = date_parse_from_format($date, '%Y-%m-%d %H:%M:%S');`
`607`
`612 if (!function_exists('date_parse_from_format'))`
`614 function date_parse_from_format($date, $fmt)`
`617 die('Invalid date_parse_from_format format '.$fmt);`

<!-- github-comment-id:1493062933 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This warning makes the export of an RSS feed impossible:
Deprecated: Function strptime() is deprecated in /.../include/functions_notification.inc.php on line 604How to reproduce:

Expected:
have a valid RSS feed
Environment:
Piwigo 13.6.0
PHP8.1
hello
the strptime() function is deprecated since php 8.1
try replacing this with date_parse_from_format
604 $exploded_date = date_parse_from_format($date, '%Y-%m-%d %H:%M:%S');607612 if (!function_exists('date_parse_from_format'))614 function date_parse_from_format($date, $fmt)617 die('Invalid date_parse_from_format format '.$fmt);Hi @plegall
I propose it from version 14 🙏
@klaoun I made a simpler fix
@plegall ok approved fix