* 'master' of https://github.com/giuseppenucifora/NSDate_Utils:
  - Fix ParseDateFormat
This commit is contained in:
Giuseppe Nucifora 2017-01-04 12:03:38 +01:00
commit e86571f3c8
8 changed files with 16 additions and 18 deletions

View File

@ -9,7 +9,7 @@ PODS:
- FBSnapshotTestCase/Core (2.1.4)
- FBSnapshotTestCase/SwiftSupport (2.1.4):
- FBSnapshotTestCase/Core
- NSDate_Utils (1.0.0)
- NSDate_Utils (1.0.1)
- Specta (1.0.5)
DEPENDENCIES:
@ -27,9 +27,9 @@ SPEC CHECKSUMS:
Expecta: e1c022fcd33910b6be89c291d2775b3fe27a89fe
Expecta+Snapshots: c343f410c7a6392f3e22e78f94c44b6c0749a516
FBSnapshotTestCase: '094f9f314decbabe373b87cc339bea235a63e07a'
NSDate_Utils: 45d47afab329001ccafe056308d0cc05460e5298
NSDate_Utils: b451375dcbf9099a444c32de029c4498a5e7d58e
Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2
PODFILE CHECKSUM: 5d3cb6429ba8613bec51b3e797c0070e91be6b26
COCOAPODS: 1.2.0.beta.1
COCOAPODS: 1.2.0.beta.3

View File

@ -1,6 +1,6 @@
{
"name": "NSDate_Utils",
"version": "1.0.0",
"version": "1.0.1",
"summary": "NSDate_Utils is a NSDate category that helps date managements. For example NSString to NSDate, NSDate to NSString,NSSdate comparisons",
"homepage": "https://github.com/giuseppenucifora/NSDate_Utils",
"license": "MIT",
@ -9,7 +9,7 @@
},
"source": {
"git": "https://github.com/giuseppenucifora/NSDate_Utils.git",
"tag": "1.0.0"
"tag": "1.0.1"
},
"platforms": {
"ios": "7.0"

View File

@ -9,7 +9,7 @@ PODS:
- FBSnapshotTestCase/Core (2.1.4)
- FBSnapshotTestCase/SwiftSupport (2.1.4):
- FBSnapshotTestCase/Core
- NSDate_Utils (1.0.0)
- NSDate_Utils (1.0.1)
- Specta (1.0.5)
DEPENDENCIES:
@ -27,9 +27,9 @@ SPEC CHECKSUMS:
Expecta: e1c022fcd33910b6be89c291d2775b3fe27a89fe
Expecta+Snapshots: c343f410c7a6392f3e22e78f94c44b6c0749a516
FBSnapshotTestCase: '094f9f314decbabe373b87cc339bea235a63e07a'
NSDate_Utils: 45d47afab329001ccafe056308d0cc05460e5298
NSDate_Utils: b451375dcbf9099a444c32de029c4498a5e7d58e
Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2
PODFILE CHECKSUM: 5d3cb6429ba8613bec51b3e797c0070e91be6b26
COCOAPODS: 1.2.0.beta.1
COCOAPODS: 1.2.0.beta.3

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<string>1.0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>

View File

@ -59,7 +59,7 @@ code_sign_if_enabled() {
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
# Use the current code_sign_identitiy
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1""
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'"
if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
code_sign_cmd="$code_sign_cmd &"

View File

@ -59,7 +59,7 @@ code_sign_if_enabled() {
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
# Use the current code_sign_identitiy
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1""
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'"
if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
code_sign_cmd="$code_sign_cmd &"

View File

@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = "NSDate_Utils"
s.version = "1.0.0"
s.version = "1.0.1"
s.summary = "NSDate_Utils is a NSDate category that helps date managements. For example NSString to NSDate, NSDate to NSString,NSSdate comparisons"
# This description is used to generate tags and improve search results.

View File

@ -534,12 +534,10 @@ static NSDateFormatter *_displayFormatter = nil;
[dateFormatter setDateFormat:dateFormat];
NSDate *theDate = nil;
NSError *error = nil;
if (![dateFormatter getObjectValue:&theDate forString:dateString range:nil error:&error]) {
NSLog(@"Date '%@' could not be parsed: %@", dateString, error);
}
else {
NSDate *theDate = [NSDate dateFromString:dateString withFormat:dateFormat];
if (theDate) {
return dateFormat;
}
}