Skip to content
Browse files

Fix date format in header for time zones with offset in minutes as we…

…ll as hours
  • Loading branch information...
1 parent 700ab3c commit 9599399afad06973e2596a33df8942bed7760f2a @pedrosland committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 smtp/message.js
View
2 smtp/message.js
@@ -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";

0 comments on commit 9599399

Please sign in to comment.
Something went wrong with that request. Please try again.