Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix failing tz tests #32

Closed
jmbarbone opened this issue Jul 27, 2021 · 1 comment
Closed

fix failing tz tests #32

jmbarbone opened this issue Jul 27, 2021 · 1 comment

Comments

@jmbarbone
Copy link
Owner

May need to use withr::local_timezone()

== Failed tests ================================================================
-- Failure (test-diff-time.R:196:3): class coehersion --------------------------
extract_numeric_time("2021-01-01", NULL) (`actual`) not identical to struct(1609477200, "double", tzone = "") (`expected`).

`attr(actual, 'tzone')`:   "UTC"
`attr(expected, 'tzone')`: ""   

  `actual`: 1609459200
`expected`: 1609477200
-- Failure (test-diff-time.R:206:3): class coehersion --------------------------
extract_numeric_time(as.POSIXlt("2021-01-01"), NULL) (`actual`) not identical to struct(1609477200, "double", tzone = "") (`expected`).

`attr(actual, 'tzone')`:   "UTC"
Error: Error: R CMD check found ERRORs
Execution halted
`attr(expected, 'tzone')`: ""   

  `actual`: 1609459200
`expected`: 1609477200
jmbarbone added a commit that referenced this issue Jul 28, 2021
@jmbarbone
Copy link
Owner Author

Closed via 5c44eca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant