Revision: 28366
http://sourceforge.net/p/bibdesk/svn/28366
Author: hofman
Date: 2023-09-22 14:58:53 +0000 (Fri, 22 Sep 2023)
Log Message:
-----------
get month format from calendar
Modified Paths:
--------------
trunk/bibdesk/BDSKFormatParser.m
Modified: trunk/bibdesk/BDSKFormatParser.m
===================================================================
--- trunk/bibdesk/BDSKFormatParser.m 2023-09-22 14:52:05 UTC (rev 28365)
+++ trunk/bibdesk/BDSKFormatParser.m 2023-09-22 14:58:53 UTC (rev 28366)
@@ -383,7 +383,8 @@
monthString = [(BDSKStringNode *)[nodes
objectAtIndex:0] value];
}
NSDate *date = [NSDate dateWithMonthString:monthString
yearString:@"2000"];
- monthString = [date
descriptionWithCalendarFormat:@"%m" timeZone:nil locale:nil];
+ NSInteger m = [[[[NSCalendar alloc]
initWithCalendarIdentifier:NSGregorianCalendar] autorelease]
component:NSCalendarUnitMonth fromDate:date];
+ monthString = [NSString
stringWithFormat:@"%.2ld", m];
[parsedStr
appendString:monthString];
}
break;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit