Skip to content

Commit b05903d

Browse files
authored
Use {tzdb} (#181)
* Swap to tzdb data * Remove current `tzdata/` * Swap from DavisVaughan to r-lib
1 parent eebb15f commit b05903d

35 files changed

+5
-30468
lines changed

DESCRIPTION

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Depends:
2727
Imports:
2828
ellipsis,
2929
rlang,
30+
tzdb,
3031
vctrs (>= 0.3.6.9000)
3132
Suggests:
3233
covr,
@@ -41,6 +42,7 @@ LinkingTo:
4142
VignetteBuilder:
4243
knitr
4344
Remotes:
45+
r-lib/tzdb,
4446
r-lib/vctrs
4547
Config/testthat/edition: 3
4648
Encoding: UTF-8

R/zzz.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.onLoad <- function(libname, pkgname) {
44
clock_init_utils()
55

6-
tzdata <- system.file("tzdata", package = "clock", mustWork = TRUE)
6+
tzdata <- tzdb::tzdb_path(type = "text")
77
clock_set_install(tzdata)
88

99
vctrs::s3_register("pillar::pillar_shaft", "clock_calendar", pillar_shaft.clock_calendar)

inst/tzdata/CONTRIBUTING

Lines changed: 0 additions & 92 deletions
This file was deleted.

inst/tzdata/LICENSE

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)