Skip to content
Permalink
Browse files

Fix calendar event dates on VB3 import

  • Loading branch information...
chrisgraham committed May 15, 2019
1 parent 7d1bbe7 commit b2e806c0f5e0cbf7df3b1ec9c5f1c09a0ef7f4fa
Showing with 1 addition and 1 deletion.
  1. +1 −1 sources/hooks/modules/admin_import/vb3.php
@@ -1052,7 +1052,7 @@ public function import_calendar($db, $table_prefix, $file_base)
$recurrence = 'yearly ' . str_repeat('0', intval($bits[0]) - 1) . '1';
break;
}
list($start_year, $start_month, $start_day, $start_hour, $start_minute) = explode('-', date('Y-m-d-h-i', strtotime($row['dateline'])));
list($start_year, $start_month, $start_day, $start_hour, $start_minute) = explode('-', date('Y-m-d-h-i', $row['dateline']));
list($end_year, $end_month, $end_day, $end_hour, $end_minute) = array(null, null, null, null, null);
cns_over_msn();
$id_new = add_calendar_event(db_get_first_id() + 1, $recurrence, $recurrences, 0, $row['title'], $row['event'], 3, $start_year, $start_month, $start_day, 'day_of_month', $start_hour, $start_minute, $end_year, $end_month, $end_day, 'day_of_month', $end_hour, $end_minute, null, 1, null, 1, 1, 1, 1, '', $submitter, 0, $row['dateline']);

0 comments on commit b2e806c

Please sign in to comment.
You can’t perform that action at this time.