Skip to content

Commit

Permalink
timezone should be correct at this point
Browse files Browse the repository at this point in the history
  • Loading branch information
l-k- committed Jan 26, 2024
1 parent dc1c08c commit 35434c4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions R/get_starttime_weekday_meantemp_truncdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,6 @@ get_starttime_weekday_meantemp_truncdata = function(monc, dformat, data,
if (exists("P")) {
rm(P); gc()
}
#==================================================
#inspection timezone
timezone = attr(unclass(as.POSIXlt(starttime[1])), which = "tzone")
# assuming that timestamps is good, but that timezone might be lost in conversion from string to POSIXct
if (dformat == FORMAT$BIN) { #not sure whether this is required for csv-format (2)
if (length(which(timezone == "GMT")) > 0) {
if (length(desiredtz) == 0) {
warning("desiredtz not specified, local timezone used as default", call. = FALSE)
desiredtz = ""
}
starttime = as.POSIXlt(starttime[1], tz = desiredtz)
}
}
#================================================
#assess weekday
wday = unclass(as.POSIXlt(starttime[1]))$wday #day of the week 0-6 and 0 is Sunday
Expand Down

0 comments on commit 35434c4

Please sign in to comment.