Commit Graph

2 Commits

Author SHA1 Message Date
Ollama
095e7a4c36 Use CIUnitTestCase for consistency with other tests 2026-03-10 21:48:03 +00:00
Ollama
14ecb4a2f7 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
2026-03-08 21:46:32 +00:00