Ignore:
Timestamp:
Dec 30, 2018, 7:37:55 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Store date of meet items including time. For items without specified time, just use current time (time of import).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Import/TanecniSkola.php

    r16 r31  
    4747      {
    4848        $MeetItem = new MeetItem();
    49         $MeetItem->Date = HumanDateToTime(trim(GetTextBetween($Item, '<h3>', '</h3>')));
    50         if ($MeetItem->Date != null)
     49        $MeetItem->Time = HumanDateTimeToTime(trim(GetTextBetween($Item, '<h3>', '</h3>')).' '.HumanTime(time()));
     50        if ($MeetItem->Time != null)
    5151        {
    52           $PreviousTime = $MeetItem->Date;
    53         } else $MeetItem->Date = $PreviousTime;
     52          $PreviousTime = $MeetItem->Time;
     53        } else $MeetItem->Time = $PreviousTime;
    5454
    5555        $Part = GetTextBetween($Item, '</strong>', '<strong>');
Note: See TracChangeset for help on using the changeset viewer.