strip hours leading spaces

25e92e3 · gmorell · 2022-08-13 03:02

5 files +1 -1

Files changed

modified apps/room_sanctum/lib/room_sanctum/storage.ex
+1 −1
@@ -555,7 +555,7 @@ defmodule RoomSanctum.Storage do
555 555 """
556 556 defp convert_gtfs_time(time) do
557 557 [hour, min, second] = time |> String.split(":")
558 − hour = hour |> String.to_integer()
558 + hour = hour |> String.strip |> String.to_integer()
559 559
560 560 hour = cond do
561 561 hour >= 24 -> hour - 24

Parents: ddff734