diff options
author | dmoagx <post@wickenrode.com> | 2011-10-07 21:54:28 +0000 |
---|---|---|
committer | dmoagx <post@wickenrode.com> | 2011-10-07 21:54:28 +0000 |
commit | fbe0dde7445e36f058974ec0245076ed20974bd6 (patch) | |
tree | 6bee5d3674ea64b74a10b10012d8e682354eae52 | |
parent | 31f17d3c4b1be994b647c133196c82c11db4328f (diff) | |
download | sequelpro-fbe0dde7445e36f058974ec0245076ed20974bd6.tar.gz sequelpro-fbe0dde7445e36f058974ec0245076ed20974bd6.tar.bz2 sequelpro-fbe0dde7445e36f058974ec0245076ed20974bd6.zip |
* Fixes a minor bug where the server time zone would not be detected correctly
-rw-r--r-- | Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m | 3 |
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); |