スレ立て日のフォーマットを nsIScriptableDateFormat から Date.toLocaleFormat に変更
@@ -119,8 +119,6 @@ | ||
119 | 119 | init: function(aURLSpec){ |
120 | 120 | this._bbs2chService = Cc["@mozilla.org/bbs2ch-service;1"].getService(Ci.nsIBbs2chService); |
121 | 121 | this._ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); |
122 | - this._dateFormat = Cc["@mozilla.org/intl/scriptabledateformat;1"] | |
123 | - .getService(Ci.nsIScriptableDateFormat); | |
124 | 122 | |
125 | 123 | this._validURL = false; |
126 | 124 | try{ |
@@ -208,10 +206,7 @@ | ||
208 | 206 | * Date オブジェクトからフォーマットされた日付文字列(短い形式)を返す |
209 | 207 | */ |
210 | 208 | _getFormatedDate: function(aDate){ |
211 | - return this._dateFormat.FormatDate("", this._dateFormat.dateFormatShort, | |
212 | - aDate.getFullYear(), | |
213 | - aDate.getMonth() + 1, | |
214 | - aDate.getDate()); | |
209 | + return aDate.toLocaleFormat("%Y/%m/%d %H:%M"); | |
215 | 210 | }, |
216 | 211 | |
217 | 212 |