fix error warning about _SameDay bound twice

This commit is contained in:
Jesse Gumm 2021-06-01 08:25:00 -05:00
parent d159878f62
commit d0b6fc0011

View file

@ -806,7 +806,7 @@ age_days(Birth) ->
age_days(Birth, Now) -> age_days(Birth, Now) ->
case {to_date(Birth), to_date(Now)} of case {to_date(Birth), to_date(Now)} of
{{_SameDay, _}, {_SameDay, _}} -> {{SameDay, _}, {SameDay, _}} ->
0; 0;
{{BirthDate, BirthTime}, {NowDate, NowTime}} -> {{BirthDate, BirthTime}, {NowDate, NowTime}} ->
BirthDays = calendar:date_to_gregorian_days(BirthDate), BirthDays = calendar:date_to_gregorian_days(BirthDate),