JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
this_month() doesn't return with a leading zero
[wfpl.git] / misc.php
index abe5c28..2d90ada 100644 (file)
--- a/misc.php
+++ b/misc.php
@@ -22,7 +22,7 @@ function this_year() {
 
 # return the number of the current month (1..12)
 function this_month() {
-       return strftime('%m');
+       return ereg_replace('^0', '', strftime('%m'));
 }