Index: src/OFDate.m ================================================================== --- src/OFDate.m +++ src/OFDate.m @@ -180,25 +180,11 @@ return OF_ORDERED_SAME; } - (OFString*)description { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; - OFString *tmp, *ret; - - tmp = [self dateStringWithFormat: @"%Y-%m-%dT%H:%M:%S"]; - - if (usec == 0) - ret = [OFString stringWithFormat: @"%sZ", [tmp cString]]; - else - ret = [OFString stringWithFormat: @"%s.%06dZ", [tmp cString], - usec]; - - [ret retain]; - [pool release]; - - return [ret autorelease]; + return [self dateStringWithFormat: @"%Y-%m-%dT%H:%M:%SZ"]; } - (suseconds_t)microsecond { return usec; Index: tests/OFDateTests.m ================================================================== --- tests/OFDateTests.m +++ tests/OFDateTests.m @@ -32,11 +32,11 @@ (d2 = [OFDate dateWithTimeIntervalSince1970: 3600 * 25 + 5 microseconds: 1])) TEST(@"-[description]", [[d1 description] isEqual: @"1970-01-01T00:00:00Z"] && - [[d2 description] isEqual: @"1970-01-02T01:00:05.000001Z"]) + [[d2 description] isEqual: @"1970-01-02T01:00:05Z"]) TEST(@"-[isEqual:]", [d1 isEqual: [OFDate dateWithTimeIntervalSince1970: 0]] && ![d1 isEqual: [OFDate dateWithTimeIntervalSince1970: 0 microseconds: 1]])