diff --git a/lib/Newsletter/Shortcodes/Categories/Date.php b/lib/Newsletter/Shortcodes/Categories/Date.php index c9bbee0846..f4e0007df8 100644 --- a/lib/Newsletter/Shortcodes/Categories/Date.php +++ b/lib/Newsletter/Shortcodes/Categories/Date.php @@ -9,7 +9,7 @@ class Date { ) { $action_mapping = [ 'd' => 'd', - 'dordinal' => 'dS', + 'dordinal' => 'jS', 'dtext' => 'l', 'm' => 'm', 'mtext' => 'F', diff --git a/tests/integration/Newsletter/ShortcodesTest.php b/tests/integration/Newsletter/ShortcodesTest.php index 4fb4c354fe..14736c4d8f 100644 --- a/tests/integration/Newsletter/ShortcodesTest.php +++ b/tests/integration/Newsletter/ShortcodesTest.php @@ -89,7 +89,7 @@ class ShortcodesTest extends \MailPoetTest { $shortcode_details = ['action' => 'd']; expect(Date::process($shortcode_details))->equals(date_i18n('d', current_time('timestamp'))); $shortcode_details = ['action' => 'dordinal']; - expect(Date::process($shortcode_details))->equals(date_i18n('dS', current_time('timestamp'))); + expect(Date::process($shortcode_details))->equals(date_i18n('jS', current_time('timestamp'))); $shortcode_details = ['action' => 'dtext']; expect(Date::process($shortcode_details))->equals(date_i18n('l', current_time('timestamp'))); $shortcode_details = ['action' => 'm'];