Skip to content

Commit

Permalink
Merge pull request #15520 from compucorp/fix-date-format-values
Browse files Browse the repository at this point in the history
Make sure labels match the actual date input format
  • Loading branch information
mattwire authored Oct 22, 2019
2 parents 90c7c74 + 07faa05 commit 24c3d10
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions CRM/Core/SelectValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -731,21 +731,21 @@ public static function caseTokens($caseTypeId = NULL) {
*/
public static function getDatePluginInputFormats() {
return [
"mm/dd/yy" => ts('mm/dd/yyyy (12/31/2009)'),
"dd/mm/yy" => ts('dd/mm/yyyy (31/12/2009)'),
"yy-mm-dd" => ts('yyyy-mm-dd (2009-12-31)'),
"dd-mm-yy" => ts('dd-mm-yyyy (31-12-2009)'),
'dd.mm.yy' => ts('dd.mm.yyyy (31.12.2009)'),
"M d, yy" => ts('M d, yyyy (Dec 31, 2009)'),
'd M yy' => ts('d M yyyy (31 Dec 2009)'),
"MM d, yy" => ts('MM d, yyyy (December 31, 2009)'),
'd MM yy' => ts('d MM yyyy (31 December 2009)'),
"DD, d MM yy" => ts('DD, d MM yyyy (Thursday, 31 December 2009)'),
"mm/dd" => ts('mm/dd (12/31)'),
"dd-mm" => ts('dd-mm (31-12)'),
"yy-mm" => ts('yyyy-mm (2009-12)'),
'M yy' => ts('M yyyy (Dec 2009)'),
"yy" => ts('yyyy (2009)'),
'mm/dd/yy' => ts('mm/dd/yy (12/31/2009)'),
'dd/mm/yy' => ts('dd/mm/yy (31/12/2009)'),
'yy-mm-dd' => ts('yy-mm-dd (2009-12-31)'),
'dd-mm-yy' => ts('dd-mm-yy (31-12-2009)'),
'dd.mm.yy' => ts('dd.mm.yy (31.12.2009)'),
'M d, yy' => ts('M d, yy (Dec 31, 2009)'),
'd M yy' => ts('d M yy (31 Dec 2009)'),
'MM d, yy' => ts('MM d, yy (December 31, 2009)'),
'd MM yy' => ts('d MM yy (31 December 2009)'),
'DD, d MM yy' => ts('DD, d MM yy (Thursday, 31 December 2009)'),
'mm/dd' => ts('mm/dd (12/31)'),
'dd-mm' => ts('dd-mm (31-12)'),
'yy-mm' => ts('yy-mm (2009-12)'),
'M yy' => ts('M yy (Dec 2009)'),
'yy' => ts('yy (2009)'),
];
}

Expand Down

0 comments on commit 24c3d10

Please sign in to comment.