[lib/ocaml] attempt to properly deal with leap seconds