JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
this_month() doesn't return with a leading zero
authorJason Woofenden <jason183@herkamire.com>
Thu, 18 Jan 2007 14:39:45 +0000 (09:39 -0500)
committerJason Woofenden <jason183@herkamire.com>
Thu, 18 Jan 2007 14:39:45 +0000 (09:39 -0500)
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'));
 }