Skip to content
Browse files

Tweak format string

  • Loading branch information...
1 parent 910868e commit cdc1aec173c7530d500b5a7d7431cd92c26579f5 @Vagabond committed
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 ~2..0w:~2..0w:~2..0w ~s", [DoW, Day, MoY, Year, Hour, Minute, Second, zone()]).
+ io_lib:format("~s, ~b ~s ~b ~2..0b:~2..0b:~2..0b ~s", [DoW, Day, MoY, Year, Hour, Minute, Second, zone()]).
%% @doc Calculate the current timezone and format it like -0400. Borrowed from YAWS.
zone() ->

0 comments on commit cdc1aec

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