Fix incorrect date header when in a timezone with +/- 30 mins #56

Merged
merged 1 commit into from Jul 29, 2013
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

View
@@ -35,7 +35,7 @@ var Message = function(headers)
var now = new Date();
this.header = {
"message-id":"<" + now.getTime() + "." + (counter++) + "." + process.pid + "@" + os.hostname() +">",
- "date":moment().format("ddd, DD MMM YYYY HH:mm:ss ZZ")
+ "date":moment().format("ddd, DD MMM YYYY HH:mm:ss ") + moment().format("Z").replace(/:/, '')
};
this.content = "text/plain; charset=utf-8";