changed date format

This commit is contained in:
MPG13 2018-05-06 20:27:46 -06:00
parent bf613d53d7
commit d6f1a2c869
4 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,6 @@
ARCHS = arm64
TARGET = iphone:clang:latest
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = DateUnderTimeX

View file

@ -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];