Repository navigation
In as_epi_archive(), accept POSIXct datetime versions but convert to date for now - #754
Conversation
5932bde to
ac2bae9
Compare
JavierMtzRdz
left a comment
There was a problem hiding this comment.
It looks almost ready. I caught a couple of bugs and added a couple of suggestions.
|
Thanks for the bug catching! Could I get your thoughts on one design point as well? When determining the the date calculation time zone, should we consider the display timezone of the POSIXct object? I currently am using the display timezone of the POSIXct object fed in, if there is one. This means that
Any feelings on whether we should continue to consider it vs. just assume based on the session tz? |
Co-authored-by: Javier {∅, Rdz} <39629918+JavierMtzRdz@users.noreply.github.com>
Co-authored-by: Javier {∅, Rdz} <39629918+JavierMtzRdz@users.noreply.github.com>
This is because parsing datetimes provided in UTC, such as from the Epidata API, will often set the display tzone as UTC as well. It's that way in the current version of epidatr, and also if we were to directly use Looking further: our users / CRAN may run things in Actions/AWS/etc. where the system time zone may be set to UTC, which is also not desirable, so this may not be the permanent solution. We might decide to either (a) have epidatr start setting the display tz to ET after it's done parsing, or (b) try to detect when we're running in Actions/AWS/etc. and try to give a better heads up than just the current message that they'd get. |
Checklist
Please:
PR).
brookslogan, nmdefries.
DESCRIPTION. Always incrementthe patch version number (the third number), unless you are making a
release PR from dev to main, in which case increment the minor version
number (the second number).
(backwards-incompatible changes to the documented interface) are noted.
Collect the changes under the next release number (e.g. if you are on
1.7.2, then write your changes under the 1.8 heading).
/styleto check the style and fix any issues./documentto check the package documentation and fix any issues./preview-docsto preview the docs.process.
Change explanations for reviewer
Follow-up on #753 (comment).
It looks like
fluviewin API has report times that have already been converted to dates, but this works to resolve report date non-uniqueness complaints from naive workarounds for VA data. Claims version history is large and takes a while to download; I'm aborting my test there.Magic GitHub syntax to mark associated Issue(s) as resolved when this is merged into the default branch