Skip to content

Commit 3dbf7d4

Browse files
committed
Replaced use of String.starts_with in timedesc-tzlocal
1 parent 2061157 commit 3dbf7d4

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818

1919
- See [issue #78](https://github.com/daypack-dev/timere/issues/78)
2020

21+
## Timedesc 3.1.2
22+
23+
- Removed use of `String.starts_with` in `timedesc-tzlocal` so it builds on OCaml 4.11
24+
2125
## Timedesc 3.1.1
2226

2327
- Refreshed tzdb

timedesc-tzlocal/unix/timedesc_tzlocal.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ let local () : string list =
3636
match Sys.getenv_opt "TZ" with
3737
| Some name -> (
3838
let name =
39-
if String.starts_with ~prefix:":" name then (
39+
if name.[0] = ':' then (
4040
String.sub name 1 (String.length name - 1)
4141
) else (
4242
name

0 commit comments

Comments
 (0)