Skip to content

Commit 2cc3558

Browse files
correct identification of weekday after split for #1278
1 parent 0bceedf commit 2cc3558

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/splitRecords.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,10 @@ splitRecords = function(metadatadir, params_general = NULL) {
141141
file_was_split = TRUE
142142

143143
# update weekday code and name
144-
M$wday = as.POSIXlt(x = timestamp_short[1], tz = desiredtz)$wday
144+
wday = as.POSIXlt(x = timestamp_short[1], tz = desiredtz)$wday + 1
145145
weekdays = c("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
146-
M$wdayname = weekdays[M$wday + 1]
146+
M$wday = wday
147+
M$wdayname = weekdays[wday]
147148
# save
148149
save(M, C, I,
149150
filefoldername, filename_dir, tail_expansion_log,

0 commit comments

Comments
 (0)