aboutsummaryrefslogtreecommitdiffstats
path: root/include/calendar_monthly.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/calendar_monthly.class.php')
-rw-r--r--include/calendar_monthly.class.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/calendar_monthly.class.php b/include/calendar_monthly.class.php
index eb28735e7..21aefd2ad 100644
--- a/include/calendar_monthly.class.php
+++ b/include/calendar_monthly.class.php
@@ -147,12 +147,12 @@ function get_date_where($max_levels=3)
$e = $date[CYEAR] . '-';
if (isset($date[CMONTH]) and $date[CMONTH]!=='any')
{
- $b .= $date[CMONTH] . '-';
- $e .= $date[CMONTH] . '-';
+ $b .= sprintf('%02d-', $date[CMONTH]);
+ $e .= sprintf('%02d-', $date[CMONTH]);
if (isset($date[CDAY]) and $date[CDAY]!=='any')
{
- $b .= $date[CDAY];
- $e .= $date[CDAY];
+ $b .= sprintf('%02d', $date[CDAY]);
+ $e .= sprintf('%02d', $date[CDAY]);
}
else
{