android icon indicating copy to clipboard operation
android copied to clipboard

Wrong date in notifications

Open xep22 opened this issue 11 months ago • 3 comments

  • App build number: 2.5.3 420503003
  • Android version: 15
  • Device: OnePlus 11
  • Installation source: Google Play

In the notifications there is displayed the wrong date, every day is the 2025/01/01

Screenshot_2025-01-04-21-44-28-75_b783bf344239542886fee7b48fa4b892

xep22 avatar Jan 04 '25 20:01 xep22

Does that change at all if you switch from Move mode back to Significant changes mode?

jpmens avatar Jan 04 '25 20:01 jpmens

Does that change at all if you switch from Move mode back to Significant changes mode?

No it's the same.

xep22 avatar Jan 04 '25 21:01 xep22

I think that date is the date that the notification was created, which is the default for all Android notifications.

This is a bug. We should be calling setWhen on the notification so it displays the timestamp of the last update, but I guess that Clock.system.now() is only evaluated once:

https://github.com/owntracks/android/blob/master/project/app/src/main/java/org/owntracks/android/services/OngoingNotification.kt#L60

growse avatar Jan 08 '25 11:01 growse