aprs.me/lib/aprsme_web/live
Graham McIntire cc5b3ec027
fix: Handle string timestamps in weather view DateTime comparison
The weather view was crashing with FunctionClauseError when comparing
string timestamps with DateTime structs. This happens when packets are
broadcast with string timestamps instead of DateTime objects.

Changes:
- Add cases to handle when one timestamp is a string and the other is DateTime
- Parse ISO8601 string timestamps before comparison
- Append 'Z' to timestamps that don't have timezone info
- Fallback safely when parsing fails

This prevents crashes when the weather view receives packets with
mixed timestamp formats from different parts of the system.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 15:49:46 -05:00
..
bad_packets_live clean up warnings 2025-07-16 08:55:46 -05:00
components fix compile warnings 2025-07-09 16:58:07 -05:00
info_live fix: Resolve majority of dialyzer type errors 2025-07-30 13:30:21 -05:00
map_live updates with parser updates 2025-08-03 09:19:31 -05:00
packets_live clean up warnings 2025-07-16 08:55:46 -05:00
shared Fix DateTime.to_iso8601 error by handling NaiveDateTime 2025-07-29 10:57:36 -05:00
status_live Fix comprehensive crash prevention and add missing RF path station markers 2025-07-28 11:56:00 -05:00
weather_live fix: Handle string timestamps in weather view DateTime comparison 2025-08-03 15:49:46 -05:00
about_live.ex en español 2025-07-05 15:51:39 -05:00
about_live.html.heex en español 2025-07-05 15:51:39 -05:00
api_docs_live.ex clean up warnings 2025-07-16 08:55:46 -05:00
locale_hook.ex clean up warnings 2025-07-16 08:55:46 -05:00
shutdown_handler.ex Fix PgBouncer database connection and graceful shutdown 2025-07-26 15:51:06 -05:00
theme_manager.ex more performance improvements/cleanup 2025-07-14 16:49:55 -05:00
user_confirmation_instructions_live.ex clean up warnings 2025-07-16 08:55:46 -05:00
user_confirmation_live.ex clean up warnings 2025-07-16 08:55:46 -05:00
user_forgot_password_live.ex clean up warnings 2025-07-16 08:55:46 -05:00
user_login_live.ex add more translations 2025-07-18 11:18:04 -05:00
user_registration_live.ex add more translations 2025-07-18 11:18:04 -05:00
user_reset_password_live.ex add user auth 2025-07-09 08:53:50 -05:00
user_settings_live.ex clean up warnings 2025-07-16 08:55:46 -05:00