diff --git a/Source/JsonToSwift.html b/Source/JsonToSwift.html index a9395cd..25e5ee9 100644 --- a/Source/JsonToSwift.html +++ b/Source/JsonToSwift.html @@ -20,7 +20,7 @@
Readme & FAQ
Allow recursion (create DTOs for for inner objects)
-
Date format:
+
Date format:

diff --git a/Source/converter.js b/Source/converter.js index c321937..1205ef3 100644 --- a/Source/converter.js +++ b/Source/converter.js @@ -41,7 +41,6 @@ function getType(key, value, recursive) { } case "string": - if(!isNaN(Date.parse(value, getDateFormat()))) { return {type: "date", array: false, custom: false}; } else { @@ -176,7 +175,7 @@ function generateDateExtension() { function createDateExtensionHtml(dateFormat) { var output = "\nextension NSDate {\n"; - output += "\tconvenience init?(dateString: String, format: String = \""+dateFormat+"\") {\n"; + output += "\tconvenience init?(dateString: String, format: String = \""+dateFormat+"\") {\n"; output += "\t\tlet dateStringFormatter = NSDateFormatter()\n"; output += "\t\tdateStringFormatter.dateFormat = \""+dateFormat+"\"\n"; output += "\t\tdateStringFormatter.locale = NSLocale(localeIdentifier: \"en_US_POSIX\")\n"; diff --git a/Source/stylesheet.css b/Source/stylesheet.css index 4c23cf4..58054a6 100644 --- a/Source/stylesheet.css +++ b/Source/stylesheet.css @@ -12,7 +12,7 @@ -o-filter: blur(8px); -ms-filter: blur(8px); filter: blur(8px); - opacity: 0.3; + opacity: 0.25; } html { @@ -170,7 +170,7 @@ span.feature { } #output, #input { - margin-bottom: 24px !important; + margin-bottom: 30px !important; } #info {