Skip to content
Snippets Groups Projects
Commit e86721f5 authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Removed mixed timezone warning.

parent d9758b6b
No related branches found
No related tags found
1 merge request!11Added generalized NWIS data function, and functionality to WQP raw pulls (datetimes).
......@@ -64,7 +64,7 @@ basicWQPData <- function(url){
if(length(unique(timeZoneStart)) == 1){
retval$ActivityStartDateTime <- with(retval, as.POSIXct(paste(ActivityStartDate, ActivityStartTime.Time),format="%Y-%m-%d %H:%M:%S", tz=unique(timeZoneStart)))
} else {
warning("Mixed time zone information")
# warning("Mixed time zone information")
if(any(is.na(timeZoneStart))){
warning("Missing time zone information, all dateTimes default to user's local time")
retval$ActivityStartDateTime <- with(retval, as.POSIXct(paste(ActivityStartDate, ActivityStartTime.Time), format="%Y-%m-%d %H:%M:%S"),tz=Sys.timezone())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment