aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
diff options
context:
space:
mode:
authordmoagx <post@wickenrode.com>2011-10-07 21:54:28 +0000
committerdmoagx <post@wickenrode.com>2011-10-07 21:54:28 +0000
commitfbe0dde7445e36f058974ec0245076ed20974bd6 (patch)
tree6bee5d3674ea64b74a10b10012d8e682354eae52 /Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
parent31f17d3c4b1be994b647c133196c82c11db4328f (diff)
downloadsequelpro-fbe0dde7445e36f058974ec0245076ed20974bd6.tar.gz
sequelpro-fbe0dde7445e36f058974ec0245076ed20974bd6.tar.bz2
sequelpro-fbe0dde7445e36f058974ec0245076ed20974bd6.zip
* Fixes a minor bug where the server time zone would not be detected correctly
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
index 19de4ddb..f40d79e8 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
@@ -3317,7 +3317,8 @@ void pingThreadCleanup(void *pingDetails)
NSLog(@"The time zone was not defined on the server, fallen back to default time zone: %@", serverTimeZone);
} else {
serverTimeZone = [NSTimeZone timeZoneWithName:serverTimeZoneName];
- if (!serverTimeZone) [NSTimeZone timeZoneWithAbbreviation:serverTimeZoneName];
+ if (!serverTimeZone)
+ serverTimeZone = [NSTimeZone timeZoneWithAbbreviation:serverTimeZoneName];
if (!serverTimeZone) {
serverTimeZone = [NSTimeZone defaultTimeZone];
NSLog(@"The time zone defined on the server (%@) was not recognised, fallen back to default time zone: %@", serverTimeZoneName, serverTimeZone);