laptop push

This commit is contained in:
ImBenji
2024-05-21 18:12:35 +01:00
parent 639faddfc8
commit 2846a061cc
6 changed files with 95 additions and 64 deletions

View File

@@ -241,7 +241,11 @@ class _timeComponentState extends State<_timeComponent> {
String timeString = "${now.hour % 12}:${now.minute.toString().padLeft(2, "0")} ${now.hour < 12 ? "AM" : "PM"}";
timeString = timeString.replaceAll("0:", "12:");
if (timeString.startsWith("0:")){
timeString = timeString.replaceAll("0:", "12:");
}
return timeString;
}