Sfoglia il codice sorgente

Version 1.0.1

Fixed a small bug that made a zero padding when using 12h time format. (09:41 AM instead of 9:41 AM).
beta-future-time
Gil Shahar 7 anni fa
parent
commit
d215807af8
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      Tweak.xm

+ 2
- 2
Tweak.xm Vedi File

@@ -21,7 +21,7 @@ static bool is24h;
{
[dateFormatter setDateFormat:@"HH:mm"];
}else{
[dateFormatter setDateFormat:@"hh:mm a"];
[dateFormatter setDateFormat:@"h:mm a"];
}
dateLabel.text = [dateFormatter stringFromDate:date];
[dateLabel sizeToFit];
@@ -44,4 +44,4 @@ static bool is24h;
NSRange pmRange = [dateString rangeOfString:[formatter PMSymbol]];
is24h = (amRange.location == NSNotFound && pmRange.location == NSNotFound);
[formatter release];
}
}

Loading…
Annulla
Salva