Skip to content

Commit

Permalink
fix datetime width
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Meitern committed Oct 11, 2023
1 parent fec1283 commit ed5fab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/write_xlsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ SEXP C_write_data_frame_list(SEXP df_list,
if(!Rf_isMatrix(COL) && !Rf_inherits(COL, "data.frame"))
rows = max(rows, Rf_length(COL));
if(coltypes[i] == COL_DATE)
assert_lxw(worksheet_set_column(sheet, i, i, 20, date));
assert_lxw(worksheet_set_column(sheet, i, i, 11, date));
if(coltypes[i] == COL_POSIXCT)
assert_lxw(worksheet_set_column(sheet, i, i, 20, datetime));
assert_lxw(worksheet_set_column(sheet, i, i, 21, datetime));
}

// Need to iterate by row first for performance
Expand Down

0 comments on commit ed5fab4

Please sign in to comment.