mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-28 13:45:23 -04:00
Fix Token_lib::render() for PHP 8.4 compatibility
- Replaced deprecated strftime() with IntlDateFormatter - Added proper handling for edge cases: - Strings with '%' not in date format (e.g., 'Discount: 50%') - Invalid date formats (e.g., '%-%-%', '%Y-%q-%bad') - Very long strings - Added comprehensive unit tests for Token_lib - All date format specifiers now mapped to IntlDateFormatter patterns
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f