[MIRROR] works directly with seconds (#8467)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2
2024-05-30 13:49:30 -07:00
committed by GitHub
parent adc6dada8a
commit 0e2cb72c37
4 changed files with 6 additions and 6 deletions

View File

@@ -135,7 +135,7 @@
for(var/i in 1 to LAZYLEN(L))
real_new_time += text2num(L[i]) * (60 ** (LAZYLEN(L) - i))
else
real_new_time = text2num(new_time * 10)
real_new_time = text2num(new_time)
time = clamp(real_new_time, 0, 600)
return TRUE
if("range")

View File

@@ -94,6 +94,6 @@
for(var/i in 1 to LAZYLEN(L))
real_new_time += text2num(L[i]) * (60 ** (LAZYLEN(L) - i))
else
real_new_time = text2num(new_time * 10)
real_new_time = text2num(new_time)
time = clamp(real_new_time, 0, 600)
return TRUE

View File

@@ -28,9 +28,9 @@ export const AssemblyProx = (props) => {
<NumberInput
animated
fluid
value={time / 10}
value={time}
minValue={0}
maxValue={60}
maxValue={600}
format={(val) => formatTime(round(val * 10))}
onDrag={(e, val) => act('set_time', { time: val })}
/>

View File

@@ -28,9 +28,9 @@ export const AssemblyTimer = (props) => {
<NumberInput
animated
fluid
value={time / 10}
value={time}
minValue={0}
maxValue={60}
maxValue={600}
format={(val) => formatTime(round(val * 10))}
onDrag={(e, val) => act('set_time', { time: val })}
/>