Changeset 32 for trunk/Import


Ignore:
Timestamp:
Dec 30, 2018, 8:14:55 PM (6 years ago)
Author:
chronos
Message:
  • Added: Meet item TimeImport time to see when was item imported to the database. Use TimeImport in RSS export for items with only date specified.
Location:
trunk/Import
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Import/Amblar.php

    r31 r32  
    6262        else if ($Parts[2] == 'dní') $MeetItem->Time = strtotime("-".$Parts[1]." days");
    6363        else if ($Parts[2] == 'dny') $MeetItem->Time = strtotime("-".$Parts[1]." days");
    64       } else $MeetItem->Time = HumanDateTimeToTime($MeetItem->Time.' '.HumanTime(time()));
     64      } else $MeetItem->Time = HumanDateToTime($MeetItem->Time);
    6565      $MeetItem->Email = '';
    6666      $MeetItem->Message = '';
  • trunk/Import/AstraPraha.php

    r31 r32  
    2424      $MeetItem = new MeetItem();
    2525      $MeetItem->Time = trim(GetTextBetween($Item, 'Vloženo:', '</p>'));
    26       $MeetItem->Time = HumanDateTimeToTime($MeetItem->Time.' '.HumanTime(time()));
     26      $MeetItem->Time = HumanDateToTime($MeetItem->Time);
    2727
    2828      $MeetItem->Gender = trim(GetTextBetween($Item, '<h3 class=\'dating-heading\'>', '</h3>'));
  • trunk/Import/Eso.php

    r31 r32  
    3636      }     
    3737      $MeetItem->Time = trim($Small);
    38       $MeetItem->Time = HumanDateTimeToTime($MeetItem->Time.' '.HumanTime(time()));
     38      $MeetItem->Time = HumanDateToTime($MeetItem->Time);
    3939      $MeetItem->Message = trim(GetTextBetween($Item, '<p class="lead">', '</p>'));
    4040      $MeetItem->Age = GetAgeFromText($MeetItem->Message);     
  • trunk/Import/Seznamka.php

    r31 r32  
    4040      $MeetItem->Age = trim(str_replace('let', '', $MeetItem->Age));
    4141      $MeetItem->Location = trim(GetTextBetween($Item, ' rel="nofollow">', '</a></span>'));
    42       $MeetItem->Time = HumanDateTimeToTime(trim(GetTextBetween($Item, '> </a>', '</span>')).' '.HumanTime(time()));
     42      $MeetItem->Time = HumanDateToTime(trim(GetTextBetween($Item, '> </a>', '</span>')));
    4343      $MeetItem->Message = trim(strip_tags(GetTextBetween($Item, 'margin-top:10px;\'>', '</div>')));
    4444      $MeetItem->Link = GetTextBetween($Item, "<a href='", "'");
  • trunk/Import/TanecniSkola.php

    r31 r32  
    4747      {
    4848        $MeetItem = new MeetItem();
    49         $MeetItem->Time = HumanDateTimeToTime(trim(GetTextBetween($Item, '<h3>', '</h3>')).' '.HumanTime(time()));
     49        $MeetItem->Time = HumanDateToTime(trim(GetTextBetween($Item, '<h3>', '</h3>')));
    5050        if ($MeetItem->Time != null)
    5151        {
Note: See TracChangeset for help on using the changeset viewer.