Skip to content

Commit f088152

Browse files
committed
Try fix for PHP 8.1 strftime test
1 parent d2f2cfc commit f088152

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/include/functionsSmartyTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ public function test_smarty_renders_formatTime()
116116
global $serendipity;
117117

118118
serendipity_smarty_init();
119-
119+
120+
setlocale(LC_ALL, 'en_US');
120121
$template_string = '{946684800|@formatTime:\'%b %e. %Y\'}';
121122
$result = $serendipity['smarty']->fetch('eval:' . $template_string);
122123
$this->assertEquals('Jan 1. 2000', $result);

0 commit comments

Comments
 (0)