removed all warnings. fixed bug in ezic_zone:next/3. unit tests for ezic_zone:next/3
ezic_zone:next/3 was not filtering the Zones to only those after UTCFrom. This may have caused an endless loop, always returning the earliest zone regardless of the progress of time. I wont know; I caught it rather early.
This commit is contained in:
@@ -19,17 +19,3 @@
|
||||
% a flattened zone record, giving specific information for a specific time range.
|
||||
-record(flatzone, {tzname, wall_from, wall_to, std_from, std_to, utc_from, utc_to, offset, dstoffset={0,0,0}}).
|
||||
|
||||
|
||||
|
||||
|
||||
-ifdef(debug).
|
||||
-define(debug(F,X), io:format("{~p:~p} - " ++ F ++ "~n", [?MODULE, ?LINE] ++ X)).
|
||||
-define(debug(F), io:format("{~p:~p} - ~p~n", [?MODULE, ?LINE, F])).
|
||||
-else.
|
||||
-define(debug(F,X), void).
|
||||
-define(debug(F), void).
|
||||
-endif.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user