[lldb] Revert some change in data-formatter-objc/main.m that broke TestDataFormatterO...
authorRaphael Isemann <teemperor@gmail.com>
Wed, 5 Feb 2020 13:07:19 +0000 (14:07 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 5 Feb 2020 13:08:57 +0000 (14:08 +0100)
Changing the date2 to an timezone independent value broke the test as the data formatters
uses the current time zone for the summary (so changing it to a time zone independent value
would again break the test in some time zones). We anyway just care about this for date2
which will be printed in a timezone-independent summary.

lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-objc/main.m

index 81ac218..d0fa275 100644 (file)
@@ -502,7 +502,7 @@ int main (int argc, const char * argv[])
            NSURL *nsurl3 = [NSURL URLWithString:@"?whatever" relativeToURL:nsurl2];
     
                NSDate *date1 = [NSDate dateWithTimeIntervalSince1970:133890*60*60]; // 6pm April 10, 1985 GMT
-               NSDate *date2 = [NSDate dateWithTimeIntervalSince1970:14975*24*60*60]; // 12am January 1, 2011 GMT
+               NSDate *date2 = [NSDate dateWithNaturalLanguageString:@"12am January 1, 2011"];
                NSDate *date3 = [NSDate date];
                NSDate *date4 = [NSDate dateWithTimeIntervalSince1970:24*60*60];
     NSDate *date5 = [NSDate dateWithTimeIntervalSinceReferenceDate: floor([[NSDate date] timeIntervalSinceReferenceDate])];