Typo in megasecs multiplcation
This commit is contained in:
parent
91fbbddbd5
commit
798a5b1ebc
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ extract_timezone_helper(RevDate, [TZ | TZs]) ->
|
||||||
to_unixtime(Unixtime) when is_integer(Unixtime) ->
|
to_unixtime(Unixtime) when is_integer(Unixtime) ->
|
||||||
Unixtime;
|
Unixtime;
|
||||||
to_unixtime({MegaSecs,Secs,_}) ->
|
to_unixtime({MegaSecs,Secs,_}) ->
|
||||||
MegaSecs*10000000 + Secs;
|
MegaSecs*1000000 + Secs;
|
||||||
to_unixtime(ToParse) ->
|
to_unixtime(ToParse) ->
|
||||||
Date = to_date(ToParse),
|
Date = to_date(ToParse),
|
||||||
calendar:datetime_to_gregorian_seconds(Date) - ?UNIXTIME_BASE.
|
calendar:datetime_to_gregorian_seconds(Date) - ?UNIXTIME_BASE.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue