mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-05-01 18:27:25 +00:00
sync_users_to_panel uses _safe_expire_at_for_panel which replaces past end_dates with now+1min for expired subscriptions. When sync_users_from_panel reads these artificial dates back, it treated them as legitimate "newer" dates and overwrote all expired subscriptions' end_date to approximately current time. This caused all subscription end dates to show as "just now" after sync. Fix: only update end_date from panel when the panel user status is ACTIVE. For EXPIRED/DISABLED users, the panel date may be a _safe_expire_at artifact and should not override the real expiry date in the local database.