Thanks for that JAVesey, unfortunately it seems to use some wierd calculation when it stores the date:
if (empty($form_repeat)) {
$eventdate = mktime($autohour, $automin, 0, $autoday, $automonth, $autoyear);
$eventdate2 = (empty($autoyear2)) ? NULL : mktime($autohour2, $automin2, 0, $autoday2,$automonth2, x $autoyear2);
$q = "INSERT INTO ".$xoopsDB->prefix()."_tinyevent (date, date2, event, info) VALUES ('".$eventdate."', '".$eventdate2."', '".$form_event."', '".$form_info."')";
$done = $xoopsDB->queryF($q);
}
else {
for($i = 0; $i < $form_repeat; $i++) {
$eventdate = mktime($autohour, $automin, 0, $autoday, $automonth, $autoyear)+($i*86400);
$eventdate2 = (empty($autoyear2)) ? NULL : mktime($autohour2, $automin2, 0,$autoday2, $automonth2, $autoyear2)+($i*86400);
$q = "INSERT INTO ".$xoopsDB->prefix()."_tinyevent (date, date2, event, info) VALUES ('".$eventdate."', '".$eventdate2."', '".$form_event."', '".$form_info."')";
$done = ($done && $xoopsDB->queryF($q));
}
}
and displays via:
Date | Event |
<{foreach item=content from=$content}>
<{$events.date}> |
<{$events.date2}> |
<{$events.event}> |
<{/foreach}>