Skip to content

** (UndefinedFunctionError) function :second.day_rollover_relative_to_midnight_utc/0 is undefined #229

@nelsonic

Description

@nelsonic

Build failing in the PR: #207

https://github.com/dwyl/who/actions/runs/13017035537/job/36308680461

Image
1) test default profile (AppWeb.AppLiveTest)
Error:      test/app_web/live/app_live_test.exs:11
     ** (UndefinedFunctionError) function :second.day_rollover_relative_to_midnight_utc/0 is undefined (module :second is not available)
     code: {:ok, _view, html} = live(conn, "/")
     stacktrace:
       :second.day_rollover_relative_to_midnight_utc()
       (elixir 1.14.3) lib/calendar.ex:344: Calendar.compatible_calendars?/2
       (elixir 1.14.3) lib/calendar/datetime.ex:1641: DateTime.convert/2
       (elixir 1.14.3) lib/calendar/datetime.ex:408: DateTime.from_unix!/3
       (app 1.7.0) lib/app/reqlog.ex:41: App.Reqlog.req_count_last_hour/0
       (app 1.7.0) lib/app_web/live/app_live.ex:20: AppWeb.AppLive.mount/3
       (phoenix_live_view 1.0.2) lib/phoenix_live_view/utils.ex:348: anonymous fn/6 in Phoenix.LiveView.Utils.maybe_call_live_view_mount!/5
       (telemetry 1.3.0) /home/runner/work/who/who/deps/telemetry/src/telemetry.erl:324: :telemetry.span/3
       (phoenix_live_view 1.0.2) lib/phoenix_live_view/static.ex:320: Phoenix.LiveView.Static.call_mount_and_handle_params!/5
       (phoenix_live_view 1.0.2) lib/phoenix_live_view/static.ex:155: Phoenix.LiveView.Static.do_render/4
       (phoenix_live_view 1.0.2) lib/phoenix_live_view/controller.ex:39: Phoenix.LiveView.Controller.live_render/3
       (phoenix 1.7.18) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
       (app 1.7.0) lib/app_web/endpoint.ex:1: AppWeb.Endpoint.plug_builder_call/2
       (app 1.7.0) lib/app_web/endpoint.ex:1: AppWeb.Endpoint.call/2
       (phoenix 1.7.18) lib/phoenix/test/conn_test.ex:225: Phoenix.ConnTest.dispatch/5
       test/app_web/live/app_live_test.exs:12: (test)
 ** (UndefinedFunctionError) function :second.day_rollover_relative_to_midnight_utc/0 is undefined

Hmm ... 🤔
Gotta investigate this tomorrow morning. 🌅
Right now, gotta go be a Dad for a bit. ❤

Metadata

Metadata

Assignees

Labels

BLOCKEDCore team's HIGHEST priority, blocking critical workT25mTime Estimate 25 Minutespriority-1Highest priority issue. This is costing us money every minute that passes.tech-debtA feature/requirement implemented in a sub-optimal way & must be re-writtentechnicalA technical issue that requires understanding of the code, infrastructure or dependencies

Type

No type

Projects

Status

✅ Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions