From 638c0ff7c7854a2ba7b3512842518e55ac5e2ef2 Mon Sep 17 00:00:00 2001 From: Mordent <62817778+mordent-goonstation@users.noreply.github.com> Date: Tue, 2 Apr 2024 22:38:29 -0400 Subject: [PATCH] Fix typing for polls with relative expiry times (#18389) --- code/modules/polling/poll_editor_panel.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/polling/poll_editor_panel.dm b/code/modules/polling/poll_editor_panel.dm index cc6e1525eedc3..20807bf5441a3 100644 --- a/code/modules/polling/poll_editor_panel.dm +++ b/code/modules/polling/poll_editor_panel.dm @@ -74,11 +74,11 @@ if ("never") return null if ("minutes") - return toIso8601(addTime(subtractTime(world.realtime, hours = world.timezone), minutes = value)) + return toIso8601(addTime(subtractTime(world.realtime, hours = world.timezone), minutes = text2num(value))) if ("hours") - return toIso8601(addTime(subtractTime(world.realtime, hours = world.timezone), hours = value)) + return toIso8601(addTime(subtractTime(world.realtime, hours = world.timezone), hours = text2num(value))) if ("days") - return toIso8601(addTime(subtractTime(world.realtime, hours = world.timezone), days = value)) + return toIso8601(addTime(subtractTime(world.realtime, hours = world.timezone), days = text2num(value))) if ("timestamp") if (validateIso8601(value)) return value