Skip to content

Commit

Permalink
Merge pull request #64 from akatro/master
Browse files Browse the repository at this point in the history
fix erlcron:datetime() false return
  • Loading branch information
Santiniis authored Jul 7, 2021
2 parents f145d44 + 2b5ad78 commit 8b2f0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ecrn_control.erl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ handle_call(datetime, _From, State = #state{ref_time = DateTime,
Now = ecrn_util:epoch_milliseconds(),
Diff = Now - Actual,
DiffS = to_seconds(Diff),
RefNow = DT + Diff,
RefNow = DT + DiffS,
Msecs = Diff - DiffS*1000,
NowDT = erlang:posixtime_to_universaltime(RefNow),
{reply, {NowDT, RefNow*1000 + Msecs}, State};
Expand Down

0 comments on commit 8b2f0b0

Please sign in to comment.