OSDN Git Service

FIX: AdminActions::parse_date()が不要なBlogオブジェクトをコンストラクトしていたのを修正
authorsakamocchi <o-takashi@sakamocchi.jp>
Sun, 20 May 2012 14:23:41 +0000 (23:23 +0900)
committersakamocchi <o-takashi@sakamocchi.jp>
Sun, 20 May 2012 14:23:41 +0000 (23:23 +0900)
ウェブログではなく、管理画面のロケールに従う必要があるが、未実装。

nucleus/libs/AdminActions.php

index fb3cd3c..5aa0fd9 100644 (file)
@@ -2217,7 +2217,8 @@ class AdminActions extends BaseActions
        public function parse_date($format = 'c')
        {
                global $CONF, $manager;
-               echo i18n::formatted_datetime($format, time(), 'iso8601', $manager->getBlog((integer) $CONF['DefaultBlog']));
+               /* TODO: offset is based on i18n::get_current_locale()? */
+               echo i18n::formatted_datetime($format, time());
                return;
        }