Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added handling floating point seconds in time tuples.

  • Loading branch information...
commit 9946dfac0ac1530a57f6ee668356f66b5e52dc93 1 parent 8016570
@runejuhl authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/filter_lib/erlydtl_dateformat.erl
View
4 src/filter_lib/erlydtl_dateformat.erl
@@ -361,8 +361,10 @@ monthname(_) -> "???".
% Utility functions
integer_to_list_zerofill(N) when N < 10 ->
lists:flatten(io_lib:format("~2..0B", [N]));
+integer_to_list_zerofill(N) when is_integer(N) ->
+ integer_to_list(N);
integer_to_list_zerofill(N) ->
- integer_to_list(N).
+ integer_to_list(erlang:round(N)).
ucfirst([First | Rest]) when First >= $a, First =< $z ->
[First-($a-$A) | Rest];
Please sign in to comment.
Something went wrong with that request. Please try again.