В модуле для Друпала ljxp есть проблема с кросспостом старых записей. Дело в том, что по умолчанию он отсылает в ЖЖ дату публикации на сайте, а ЖЖ требует текущую дату.
LiveJournal crossposting error: 153: Incorrect time value: You have an entry which was posted at YYYY-MM-DD HH:mm, but you're trying to post an entry before this. Please check the date and time of both entries. If the other entry is set in the future on purpose, edit that entry to use the "Date Out of Order" option. Otherwise, use the "Date Out of Order" option for this entry instead.
Для решения проблемы возможно просто заставить модуль отсылать текущую дату, а не дату опубликования на сайте...
Для этого в файле модуля ljxp.module находим строчки
$message['subject'] = check_plain($node->title);
$message['year'] = format_date($node->created, 'custom', 'Y');
$message['mon'] = format_date($node->created, 'custom', 'n');
$message['day'] = format_date($node->created, 'custom', 'j');
$message['hour'] = format_date($node->created, 'custom', 'G');
$message['min'] = format_date($node->created, 'custom', 'i');
$message['props'] = array("opt_nocomments" => !$ljxp->comments,
И заменяем, к примеру, на эти строчки:
$message['subject'] = check_plain($node->title);
$date_time_array = getdate( time() );
$message['year'] = $date_time_array['year'];
$message['mon'] = $date_time_array['mon'];
$message['day'] = $date_time_array['mday'];
$message['hour'] = $date_time_array['hours'];
$message['min'] = $date_time_array['minutes'];
Вот, собственно, и всё...-)
Последние комментарии
3 дня 6 часа назад
5 недели 4 дня назад
6 недели 5 дня назад
9 недели 1 день назад
9 недели 1 день назад
9 недели 1 день назад
9 недели 1 день назад
9 недели 1 день назад
9 недели 1 день назад
9 недели 1 день назад