Skip to content

Commit dfc32d8

Browse files
committed
Fix Time.to_sec_string example
As of Core version 112.17.00 Time.to_sec_string requires a time zone.
1 parent 32ea926 commit dfc32d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/guided-tour/main.topscript

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ let log_entry maybe_time message =
147147
| Some x -> x
148148
| None -> Time.now ()
149149
in
150-
Time.to_sec_string time ^ " -- " ^ message
150+
Time.to_sec_string Time.Zone.local time ^ " -- " ^ message
151151
;;
152152
log_entry (Some Time.epoch) "A long long time ago";;
153153
log_entry None "Up to the minute";;

0 commit comments

Comments
 (0)