From 047c226d4e3a3f5b526770bf7bb71c3b75b03a18 Mon Sep 17 00:00:00 2001 From: Mark Zelinski Date: Thu, 9 Jul 2026 14:35:10 +0300 Subject: [PATCH] Fix date format year placeholder Change date format from YYYY to yyyy. The uppercase YYYY represents the ISO 8601 week-based year, which can differ from the calendar year near year boundaries. Using lowercase yyyy ensures the correct calendar year is displayed. --- extensions/DigiDocQL/PreviewViewController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/DigiDocQL/PreviewViewController.mm b/extensions/DigiDocQL/PreviewViewController.mm index 7f45c315f..911bb2d3d 100644 --- a/extensions/DigiDocQL/PreviewViewController.mm +++ b/extensions/DigiDocQL/PreviewViewController.mm @@ -100,7 +100,7 @@ - (void)providePreviewForFileRequest:(QLFilePreviewRequest *)request NSISO8601DateFormatter *dfrom = [[NSISO8601DateFormatter alloc] init]; NSDateFormatter *dto = [[NSDateFormatter alloc] init]; [dto setTimeZone: [NSTimeZone defaultTimeZone]]; - [dto setDateFormat:@"YYYY-MM-dd HH:mm:ss z"]; + [dto setDateFormat:@"yyyy-MM-dd HH:mm:ss z"]; NSMutableString *h = [NSMutableString stringWithString:@R"(