ios/Mobile/AppDelegate.mm | 4 ++++ 1 file changed, 4 insertions(+) New commits: commit f4ebf6d2835946ce708db5884d055f7e1155fe6e Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Fri Apr 26 12:01:25 2019 +0300 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Fri Apr 26 12:01:25 2019 +0300
Log the timestamp of the template file at its site and of its cached version diff --git a/ios/Mobile/AppDelegate.mm b/ios/Mobile/AppDelegate.mm index a2722da89..b9836f5d4 100644 --- a/ios/Mobile/AppDelegate.mm +++ b/ios/Mobile/AppDelegate.mm @@ -130,6 +130,10 @@ static void updateTemplates(NSData *data, NSURLResponse *response) NSDate *cachedTemplateDate = [[[NSFileManager defaultManager] attributesOfItemAtPath:[fileForTemplate path] error:nil] objectForKey:NSFileModificationDate]; + LOG_INF("Template at " << [[url absoluteString] UTF8String] << " timestamp: " + << [[templateDate descriptionWithLocale:nil] UTF8String] << ", cached template timestamp: " + << [[cachedTemplateDate descriptionWithLocale:nil] UTF8String]); + if ([templateDate compare:cachedTemplateDate] == NSOrderedDescending) { downloadTemplate(url, fileForTemplate); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits