Skip to content

Commit

Permalink
Fix beginning_day with different timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
choptastic committed May 19, 2016
1 parent 4d42f5e commit 366bc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qdate.erl
Expand Up @@ -379,7 +379,7 @@ beginning_hour(Date) ->
{{Y,M,D},{H,0,0}}.

beginning_day() ->
beginning_day({date(),time()}).
beginning_day(unixtime()).

beginning_day(Date) ->
{{Y,M,D},{_,_,_}} = to_date(Date),
Expand Down

0 comments on commit 366bc5e

Please sign in to comment.