From fbe0dde7445e36f058974ec0245076ed20974bd6 Mon Sep 17 00:00:00 2001 From: dmoagx Date: Fri, 7 Oct 2011 21:54:28 +0000 Subject: * Fixes a minor bug where the server time zone would not be detected correctly --- Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Frameworks/MCPKit') 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); -- cgit v1.2.3