Skip to content

Commit 7d9fa61

Browse files
bramleysuelaP
authored andcommitted
Add 'n' specifier to format month without leading 0.
1 parent 9efdc66 commit 7d9fa61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

public_html/lists/admin/connect.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,6 +1774,7 @@ function monthName($month, $short = 0)
17741774
* j day without leading zero
17751775
* F long representation of month
17761776
* m 2-digit month with leading zero
1777+
* n month without leading zero
17771778
* M short representation of month
17781779
* y 2-digit year
17791780
* Y 4-digit year
@@ -1796,6 +1797,7 @@ function formatDate($date, $short = 0)
17961797
'F' => monthName($month, $short),
17971798
'M' => monthName($month, true),
17981799
'm' => $month,
1800+
'n' => +$month,
17991801
'd' => $day,
18001802
'j' => +$day,
18011803
);

0 commit comments

Comments
 (0)