Skip to content
Snippets Groups Projects
Commit 353a13ab authored by rswindell's avatar rswindell
Browse files

iniGetDateTime() and iniReadDateTime() will now use the isoDateTimeStr_parse()

from xpdatetime.c to support more date string formats (e.g. the JavaScript
Date.toISOString() format).
parent 3e6fb9be
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2015 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
......@@ -1664,6 +1664,9 @@ static time_t parseDateTime(const char* value)
&& validDate(&tm))
return(fixedDateTime(&tm,tstr,0));
if((t=xpDateTime_to_time(isoDateTimeStr_parse(value))) != INVALID_TIME)
return t;
return(strtoul(value,NULL,0));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment