Strava is accurate. It sounds like it may just be a question of whether the garmin was auto pausing or including zeros. Did you stop at any time during the ride on the trainer?
The distances match so the moving time is likely different on Strava vs Garmin. Likely just need to change configuration on the Garmin.