瀏覽代碼

Use DateFormat

Pascal Peridont 18 年之前
父節點
當前提交
fb964182a6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/mtwin/mail/Part.hx

+ 1 - 1
std/mtwin/mail/Part.hx

@@ -140,7 +140,7 @@ class MetaPart<T> {
 
 	public function setDate( ?d : Date ){
 		if( d == null ) d = Date.now();
-		setHeader("Date",DateTools.format(d,"%a, %d %b %Y %H:%M:%S %z"));
+		setHeader("Date",mtwin.DateFormat.formatRfc822(d));
 	}
 
 	public function setContentId( ?cid : String ) : String {