From 353a13ab5fca0527c3eae776fe790f25cfc3e6e9 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sat, 29 Aug 2015 10:37:45 +0000
Subject: [PATCH] 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).

---
 src/xpdev/ini_file.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/xpdev/ini_file.c b/src/xpdev/ini_file.c
index 75317125fd..b19a3f210f 100644
--- a/src/xpdev/ini_file.c
+++ b/src/xpdev/ini_file.c
@@ -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));
 }
 
-- 
GitLab