Skip to content

Commit

Permalink
Fixes /etc/localtime-based tz detection for relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Zeppieri committed Nov 4, 2015
1 parent 1209b89 commit a8038e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tzinfo/private/os/unix.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

(and (file-exists? /etc/localtime)
default-zoneinfo-dir
(let ([rel (find-relative-path default-zoneinfo-dir (resolve-path /etc/localtime))])
(let ([rel (find-relative-path default-zoneinfo-dir (normalize-path /etc/localtime "/etc"))])
(match (explode-path rel)
[(cons 'up _) (find-matching-zone)]
[_ (path->string rel)]))))
Expand Down

0 comments on commit a8038e4

Please sign in to comment.