Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of https://github.com/zotonic/gen_smtp into zot…

…onic-master
  • Loading branch information...
commit 910868e07d158efa0c7fdff48d79b5de857daf50 2 parents 83cfba1 + 00c66b0
@Vagabond authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/smtp_util.erl
View
2  src/smtp_util.erl
@@ -83,7 +83,7 @@ rfc5322_timestamp() ->
NDay = calendar:day_of_the_week(Year, Month, Day),
DoW = lists:nth(NDay, ?DAYS),
MoY = lists:nth(Month, ?MONTHS),
- io_lib:format("~s, ~b ~s ~b ~b:~b:~b ~s", [DoW, Day, MoY, Year, Hour, Minute, Second, zone()]).
+ io_lib:format("~s, ~b ~s ~b ~2..0w:~2..0w:~2..0w ~s", [DoW, Day, MoY, Year, Hour, Minute, Second, zone()]).
%% @doc Calculate the current timezone and format it like -0400. Borrowed from YAWS.
zone() ->
Please sign in to comment.
Something went wrong with that request. Please try again.