aboutsummaryrefslogtreecommitdiff
path: root/admin/calendar/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/calendar/functions.php')
-rw-r--r--admin/calendar/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/calendar/functions.php b/admin/calendar/functions.php
index cffaab1..76922cc 100644
--- a/admin/calendar/functions.php
+++ b/admin/calendar/functions.php
@@ -380,8 +380,8 @@ $events = GetEventsOnInterval("{$year}-{$monthNum}-01","{$year}-{$monthNum}-{$da
echo '<td class="cal_weekday">'; //weekdays
}
- $sqlDate = $year.'-'.$monthNum.'-'.$day_num; //old way NOT unix
-
+ $sqlDate = date("Y-m-d", mktime(0, 0, 0, $monthNum, $day_num, $year));
+
//checks to see if the current day has events
$isEvent=false;
foreach($events as $event){