Revision: 16708
          http://sourceforge.net/p/skim-app/code/16708
Author:   hofman
Date:     2026-10-24 21:57:21 +0000 (Sat, 24 Oct 2026)
Log Message:
-----------
set calendar for date formatters with specific format

Modified Paths:
--------------
    trunk/NSDate_SKExtensions.m

Modified: trunk/NSDate_SKExtensions.m
===================================================================
--- trunk/NSDate_SKExtensions.m 2026-10-24 17:15:00 UTC (rev 16707)
+++ trunk/NSDate_SKExtensions.m 2026-10-24 21:57:21 UTC (rev 16708)
@@ -92,6 +92,7 @@
         formatter = [[NSDateFormatter alloc] init];
         [formatter setFormatterBehavior:NSDateFormatterBehavior10_4];
         [formatter setLocale:[NSLocale 
localeWithLocaleIdentifier:@"en_US_POSIX"]];
+        [formatter setCalendar:[NSCalendar 
calendarWithIdentifier:NSCalendarIdentifierGregorian]];
         [formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss ZZZ"];
     }
     return [formatter stringFromDate:self];
@@ -103,6 +104,7 @@
         formatter = [[NSDateFormatter alloc] init];
         [formatter setFormatterBehavior:NSDateFormatterBehavior10_4];
         [formatter setLocale:[NSLocale 
localeWithLocaleIdentifier:@"en_US_POSIX"]];
+        [formatter setCalendar:[NSCalendar 
calendarWithIdentifier:NSCalendarIdentifierGregorian]];
         [formatter setDateFormat:@"yyyyMMddHHmmssZZ"];
     }
     NSMutableString *dateString = [NSMutableString stringWithString:@"D:"];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to