From c481d2d6cbc256198dc5ce09ea1cc28ab41a9134 Mon Sep 17 00:00:00 2001 From: Molly White Date: Wed, 31 Jul 2013 18:07:17 -0400 Subject: [PATCH] Add month-only date format. The BookManagerv2 extension needs support for dates that consist of only a month and a year, and I think this is something that would potentially be useful to other extensions as well. Change-Id: I3672b0b0aee196890981302a41daeefb61130141 --- languages/messages/MessagesEn.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 826c364c4d..92f264c2d3 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -161,21 +161,25 @@ $datePreferenceMigrationMap = array( $dateFormats = array( 'mdy time' => 'H:i', 'mdy date' => 'F j, Y', + 'mdy monthonly' => 'F Y', 'mdy both' => 'H:i, F j, Y', 'mdy pretty' => 'F j', 'dmy time' => 'H:i', 'dmy date' => 'j F Y', + 'dmy monthonly' => 'F Y', 'dmy both' => 'H:i, j F Y', 'dmy pretty' => 'j F', 'ymd time' => 'H:i', 'ymd date' => 'Y F j', + 'ymd monthonly' => 'Y F', 'ymd both' => 'H:i, Y F j', 'ymd pretty' => 'F j', 'ISO 8601 time' => 'xnH:xni:xns', 'ISO 8601 date' => 'xnY-xnm-xnd', + 'ISO 8601 monthonly' => 'xnY-xnm', 'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns', 'ISO 8601 pretty' => 'xnm-xnd' ); -- 2.20.1