fix test to use consistent time zone (GMT)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39921 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-06-25 18:33:55 +00:00
parent 5d272a49e5
commit d9d4cd2982

View file

@ -14,6 +14,7 @@ static NSString *
formattedDaysSince1970(double daysSince1970)
{
NSCalendarDate *calendarDate;
NSTimeZone *tz;
NSString *formattedDate;
double secondsSinceReference;
@ -27,6 +28,8 @@ formattedDaysSince1970(double daysSince1970)
calendarDate = [[NSCalendarDate alloc]
initWithTimeIntervalSinceReferenceDate: secondsSinceReference];
tz = [NSTimeZone timeZoneWithName: @"GMT"];
[calendarDate setTimeZone: tz];
formattedDate = [calendarDate descriptionWithCalendarFormat: @"%d-%m-%Y"];
RELEASE(calendarDate);