How does Last Played Date get updated?

I played a song on my HomePod. When I go into the AM music app on my Mac, I can see the Last Played Date column in my library. But I noticed that it only seems to update the date if I play the song on my Mac. Is there any way to update the date and play counts when playing songs on my phone or HomePods?