forked from gilshahar7/ExactTime
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).
This commit is contained in:
2
Tweak.xm
2
Tweak.xm
@ -21,7 +21,7 @@ static bool is24h;
|
|||||||
{
|
{
|
||||||
[dateFormatter setDateFormat:@"HH:mm"];
|
[dateFormatter setDateFormat:@"HH:mm"];
|
||||||
}else{
|
}else{
|
||||||
[dateFormatter setDateFormat:@"hh:mm a"];
|
[dateFormatter setDateFormat:@"h:mm a"];
|
||||||
}
|
}
|
||||||
dateLabel.text = [dateFormatter stringFromDate:date];
|
dateLabel.text = [dateFormatter stringFromDate:date];
|
||||||
[dateLabel sizeToFit];
|
[dateLabel sizeToFit];
|
||||||
|
Reference in New Issue
Block a user