Open dvor opened 7 years ago
I googled a bit and this seems to be the simplest way to detect the system settings in ObjC:
NSString *format = [NSDateFormatter dateFormatFromTemplate:@"j" options:0 locale:[NSLocale currentLocale]];
BOOL is24Hour = ([format rangeOfString:@"a"].location == NSNotFound);
Currently Antidote always uses 24 hour format for displaying time.