mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
Update utility.c
This commit is contained in:
parent
fbb6e43e11
commit
075324df9b
1 changed files with 3 additions and 0 deletions
|
|
@ -427,6 +427,9 @@ lxw_datetime_to_excel_date_with_epoch(lxw_datetime *datetime,
|
|||
int days = 0;
|
||||
int i;
|
||||
|
||||
if (lxw_datetime_validate(datetime) != LXW_NO_ERROR)
|
||||
return 0.0;
|
||||
|
||||
/* For times without dates set the default date for the epoch. */
|
||||
if (!year) {
|
||||
if (!use_1904_epoch) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue