Browse Source

Use DateFormat

Pascal Peridont 18 years ago
parent
commit
fb964182a6
1 changed files with 1 additions and 1 deletions
  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 {