• R/O
  • SSH
  • HTTPS

bbs2ch: 提交


Commit MetaInfo

修订版450 (tree)
时间2008-12-13 22:39:46
作者flyson

Log Message

スレ立て日のフォーマットを nsIScriptableDateFormat から Date.toLocaleFormat に変更

更改概述

差异

--- branches/bbs2chreader/04_BRANCH/chrome/content/bbs2chreader/board/items.js (revision 449)
+++ branches/bbs2chreader/04_BRANCH/chrome/content/bbs2chreader/board/items.js (revision 450)
@@ -119,8 +119,6 @@
119119 init: function(aURLSpec){
120120 this._bbs2chService = Cc["@mozilla.org/bbs2ch-service;1"].getService(Ci.nsIBbs2chService);
121121 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);
124122
125123 this._validURL = false;
126124 try{
@@ -208,10 +206,7 @@
208206 * Date オブジェクトからフォーマットされた日付文字列(短い形式)を返す
209207 */
210208 _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");
215210 },
216211
217212
Show on old repository browser