neiam
/apollos_crib
It's Apollo's Crib
public · Issues · Pulls 1 · Labels · Forks · Compare · Actions failure · Badges · Packages
⭐
Log in to mark this repository.
strip hours leading spaces
25e92e3 · gmorell · 2022-08-13 03:02
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