Ver2.5.6だとadmin.phpの1171行目付近にある
これを
これを
if ($action == "new") { $ent_year = gmdate ("Y", time() + BLOGN_TIMEZONE); $ent_month = gmdate ("m", time() + BLOGN_TIMEZONE); $ent_day = gmdate ("d", time() + BLOGN_TIMEZONE); $ent_hour = gmdate ("H", time() + BLOGN_TIMEZONE); $ent_minutes = gmdate ("i", time() + BLOGN_TIMEZONE); $ent_second = gmdate ("s", time() + BLOGN_TIMEZONE); }elseif ($action == "edit") { $ent_year = substr($date, 0, 4); $ent_month = substr($date, 4, 2); $ent_day = substr($date, 6, 2); $ent_hour = substr($date, 8, 2); $ent_minutes = substr($date, 10, 2); $ent_second = substr($date, 12, 2); }
下記へ変更
if ($action == "new" || $action == "edit") { $ent_year = gmdate ("Y", time() + BLOGN_TIMEZONE); $ent_month = gmdate ("m", time() + BLOGN_TIMEZONE); $ent_day = gmdate ("d", time() + BLOGN_TIMEZONE); $ent_hour = gmdate ("H", time() + BLOGN_TIMEZONE); $ent_minutes = gmdate ("i", time() + BLOGN_TIMEZONE); $ent_second = gmdate ("s", time() + BLOGN_TIMEZONE); }
全角スペースは削除するかタブか半角スペースに置き換えて下さいね。