From: Jason Woofenden Date: Thu, 18 Jan 2007 14:39:45 +0000 (-0500) Subject: this_month() doesn't return with a leading zero X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=dc64f82dd3b94799b472de3a092596580a90f6fe this_month() doesn't return with a leading zero --- diff --git a/misc.php b/misc.php index abe5c28..2d90ada 100644 --- 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')); }