changed date format
This commit is contained in:
parent
bf613d53d7
commit
d6f1a2c869
4 changed files with 4 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -1,3 +1,6 @@
|
|||
ARCHS = arm64
|
||||
TARGET = iphone:clang:latest
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
|
||||
TWEAK_NAME = DateUnderTimeX
|
||||
|
|
2
Tweak.xm
2
Tweak.xm
|
@ -11,7 +11,7 @@
|
|||
if([text containsString:@":"]) {
|
||||
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
|
||||
// dateFormatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];
|
||||
[dateFormatter setDateFormat:@"dd/MM"];
|
||||
[dateFormatter setDateFormat:@"d/M"];
|
||||
//dateFormatter.dateStyle = dd/MM/yyyy;
|
||||
NSDate *now = [NSDate date];
|
||||
NSString *shortDate = [dateFormatter stringFromDate:now];
|
||||
|
|
Binary file not shown.
Binary file not shown.
Reference in a new issue