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/MajkluvSvet.php

    r14 r31  
    4242        $MeetItem->Email = trim(substr($MeetItem->Email, strpos($MeetItem->Email, '|') + 1));
    4343      } else $MeetItem->Phone = '';
    44       $MeetItem->Date = trim(GetTextBetween($Item, "<span id='datum1", '</span>'));
    45       $MeetItem->Date = substr($MeetItem->Date, strpos($MeetItem->Date, '>') + 1);
    46       $MeetItem->Date = HumanDateTimeToTime($MeetItem->Date);
     44      $MeetItem->Time = trim(GetTextBetween($Item, "<span id='datum1", '</span>'));
     45      $MeetItem->Time = substr($MeetItem->Time, strpos($MeetItem->Time, '>') + 1);
     46      $MeetItem->Time = HumanDateTimeToTime($MeetItem->Time);
    4747      $MeetItem->Link = 'http://www.majkluvsvet.cz'.trim(GetTextBetween($Item, "<span class='linkk pravo'><a href='", "'>odkaz"));
    4848      $MeetItem->Database = $this->Database;
Note: See TracChangeset for help on using the changeset viewer.