Skip to content

Commit d68f9f3

Browse files
committed
fixup! Clock: Change implementation of Date to use Ptime.t
1 parent 9d76583 commit d68f9f3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ocaml/libs/clock/date.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
GNU Lesser General Public License for more details.
1111
*)
1212

13+
module L = Debug.Make (struct let name = __MODULE__ end)
14+
1315
let months =
1416
[|
1517
"Jan"
@@ -109,8 +111,7 @@ let to_rfc822 {t; tz} =
109111

110112
let to_ptime = function
111113
| {t; tz= None} as d ->
112-
Printf.printf
113-
"%s: Date %s converted to POSIX time, but timezone is missing"
114+
L.warn "%s: Date %s converted to POSIX time, but timezone is missing"
114115
__FUNCTION__ (to_rfc3339 d) ;
115116
t
116117
| {t; tz= Some _} ->

ocaml/libs/clock/dune

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
mtime.clock.os
99
(re_export ptime)
1010
ptime.clock.os
11+
xapi-log
1112
)
1213
)
1314

0 commit comments

Comments
 (0)