WP-Lifestreamのバグ

この記事は約1分で読めます。

最新版WordPress(2.9)のdashboardのプラグインの項目からインストールできる最新版のWP-lifestream、バージョンは0.99.9.5になりますが、時刻の扱いにバグがあったので修正方法を載せておきます。

問題は、ライフストリームの日付変更が、何故か0時を境にしておらず、それぞれのライフログの時刻は合っているのに、なぜか前日の夕方から翌日のログ扱いになってしまっているのです。

修正すべきは、core.phpの以下の部分。([WP-Path]/wp-content/plugins/lifestream/inc/core.php)

function get_date()
{
return $this->date + LIFESTREAM_DATE_OFFSET;
}

のカッコの中の行を、

return $this->date;

に修正するだけです。
$this->dateは既にタイムゾーンの修正を受けた時刻の値が入っているので、ここに独自の時刻オフセットを足してはいけません。

コメント

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny