Permalink
Browse files

[revert] datepicker: "[fix] datepicker: Datepicker now creates dates …

…at 11h to avoid date shifts"

This reverts commit 9cc4918.
  • Loading branch information...
1 parent 314b31b commit 6a50c625a1daeba4237dd62e6ea2c1dc54c56daa Nicolas Glondu committed Oct 7, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 stdlib/widgets/datepicker/datepicker.opa
@@ -592,8 +592,7 @@ WDatepicker = {{
mkdate((y, m, d): (int, int, int)): option(Date.date) =
if m >= 1 && m <= 12 && d >= 1 && d <= 31 then
epoch_hr = Date.to_human_readable(Date.epoch)
- { epoch_hr with
- year=y month=Date.Month.of_int(m - 1) day=d h=12 min=0 s=0 }
+ { epoch_hr with year=y month=Date.Month.of_int(m - 1) day=d }
|> Date.of_human_readable(_) |> some(_)
else
none

0 comments on commit 6a50c62

Please sign in to comment.