Fix 24 hours

This commit is contained in:
2023-06-21 22:50:57 +09:00
parent 4df9525880
commit 31eeb8e75b

View File

@@ -87,7 +87,7 @@ extension String {
let ss = Int(String(suffix(2))) else {
return nil
}
guard hh >= 0, hh <= 12, mm >= 0, mm <= 59, ss >= 0, ss <= 59 else {
guard hh >= 0, hh <= 24, mm >= 0, mm <= 59, ss >= 0, ss <= 59 else {
return nil
}
return (hh, mm, ss)