ui fix
This commit is contained in:
parent
1e29257c98
commit
69b0e3534d
@ -330,7 +330,7 @@
|
|||||||
let [hours, minutes] = timePart.split(":").map(Number);
|
let [hours, minutes] = timePart.split(":").map(Number);
|
||||||
|
|
||||||
// Only show labels at 30-minute intervals (XX:00 and XX:30)
|
// Only show labels at 30-minute intervals (XX:00 and XX:30)
|
||||||
if (minutes % 30 === 0) {
|
if (minutes % 60 === 0) {
|
||||||
const amPm = hours >= 12 ? "PM" : "AM";
|
const amPm = hours >= 12 ? "PM" : "AM";
|
||||||
hours = hours % 12 || 12;
|
hours = hours % 12 || 12;
|
||||||
return minutes === 0
|
return minutes === 0
|
||||||
|
|||||||
@ -351,7 +351,7 @@
|
|||||||
let [hours, minutes] = timePart.split(":").map(Number);
|
let [hours, minutes] = timePart.split(":").map(Number);
|
||||||
|
|
||||||
// Only show labels at 30-minute intervals (XX:00 and XX:30)
|
// Only show labels at 30-minute intervals (XX:00 and XX:30)
|
||||||
if (minutes % 30 === 0) {
|
if (minutes % 60 === 0) {
|
||||||
const amPm = hours >= 12 ? "PM" : "AM";
|
const amPm = hours >= 12 ? "PM" : "AM";
|
||||||
hours = hours % 12 || 12;
|
hours = hours % 12 || 12;
|
||||||
return minutes === 0
|
return minutes === 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user