Skip to content

Commit 89e593c

Browse files
committed
Try alternative PHP 8.1 strftime test fix
1 parent f088152 commit 89e593c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/include/functionsSmartyTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function test_smarty_renders_formatTime()
117117

118118
serendipity_smarty_init();
119119

120-
setlocale(LC_ALL, 'en_US');
120+
Locale::setDefault('en_US_POSIX');
121121
$template_string = '{946684800|@formatTime:\'%b %e. %Y\'}';
122122
$result = $serendipity['smarty']->fetch('eval:' . $template_string);
123123
$this->assertEquals('Jan 1. 2000', $result);

0 commit comments

Comments
 (0)