From 15de70b938ebc4a2538b342a97510269aa70e70b Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 14 Oct 2015 09:57:56 -0400 Subject: [PATCH] (fix) make sure English is always used when generating Date headers using EAS (#3356) --- ActiveSync/SOGoActiveSyncDispatcher.m | 5 ++++- NEWS | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ActiveSync/SOGoActiveSyncDispatcher.m b/ActiveSync/SOGoActiveSyncDispatcher.m index 1d6f2bfbb..377ebd1c1 100644 --- a/ActiveSync/SOGoActiveSyncDispatcher.m +++ b/ActiveSync/SOGoActiveSyncDispatcher.m @@ -32,6 +32,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #import #import #import +#import #import #import #import @@ -2947,7 +2948,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. { NSString *value; - value = [[NSDate date] descriptionWithCalendarFormat: @"%a, %d %b %Y %H:%M:%S %z" timeZone: [NSTimeZone timeZoneWithName: @"GMT"] locale: nil]; + value = [[NSDate date] descriptionWithCalendarFormat: @"%a, %d %b %Y %H:%M:%S %z" + timeZone: [NSTimeZone timeZoneWithName: @"GMT"] + locale: [[[NSLocale alloc] initWithLocaleIdentifier: @"en_US"] autorelease]]; s = [NSString stringWithFormat: @"Date: %@\n%@", value, [theRequest contentAsString]]; } else diff --git a/NEWS b/NEWS index bfe555813..1af9d69df 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,7 @@ Enhancements Bug fixes - numerous EAS fixes when connections are dropped before the EAS client receives the response (#3058, #2849) - correctly handle the References header over EAS (#3365) + - make sure English is always used when generating Date headers using EAS (#3356) 2.3.2 (2015-09-16) ------------------