Changeset 65 for trunk/Modules/Meet/Import/SalsaDance.php
- Timestamp:
- Apr 19, 2022, 10:25:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Meet/Import/SalsaDance.php
r63 r65 22 22 $Item = GetTextBetween($Content, $ItemStart, $ItemEnd); 23 23 $MeetItem = new MeetItem(); 24 $ MeetItem->Time = trim(GetTextBetween($Item, '<span class="created">', '</span>'));25 $ MeetItem->Time = str_replace('. ', '.', $MeetItem->Time);26 if (strpos($ MeetItem->Time, 'dnes v') !== false)27 $ MeetItem->Time = str_replace('dnes v', HumanDate(time()), $MeetItem->Time);28 if (strpos($ MeetItem->Time, 'včera v') !== false)29 $ MeetItem->Time = str_replace('včera v', HumanDate(strtotime('-1 day', time())), $MeetItem->Time);24 $Time = trim(GetTextBetween($Item, '<span class="created">', '</span>')); 25 $Time = str_replace('. ', '.', $Time); 26 if (strpos($Time, 'dnes v') !== false) 27 $Time = str_replace('dnes v', HumanDate(time()), $Time); 28 if (strpos($Time, 'včera v') !== false) 29 $Time = str_replace('včera v', HumanDate(strtotime('-1 day', time())), $Time); 30 30 $MeetItem->Time = HumanDateTimeToTime($MeetItem->Time); 31 31 $MeetItem->Name = trim(GetTextBetween($Item, '<div class="comment-name">', '</div>'));
Note:
See TracChangeset
for help on using the changeset viewer.