Changed activities list to use moving_time

This commit is contained in:
Justin Foell
2021-04-30 11:42:58 -05:00
parent 66da9fdb09
commit d0d12d25e6
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -120,6 +120,10 @@ On the WP-Strava settings page you cannot currently remove and add another athle
== Changelog ==
= 2.9.0 =
Switched Activities List to display moving time instead of elapsed time https://wordpress.org/support/topic/moving-time-instead-of-elapsed-time/
= 2.8.0 =
Revised `block.json` based on feedback from https://wordpress.org/plugins/developers/block-plugin-validator/
+1 -1
View File
@@ -74,7 +74,7 @@ class WPStrava_ActivitiesListRenderer {
// Translators: "went 10 miles"
$response .= sprintf( __( ' went %1$s %2$s', 'wp-strava' ), $som->distance( $activity->distance ), $som->get_distance_label() );
// Translators: "during 2 hours"
$response .= sprintf( __( ' during %1$s %2$s', 'wp-strava' ), $som->time( $activity->elapsed_time ), $som->get_time_label() );
$response .= sprintf( __( ' during %1$s %2$s', 'wp-strava' ), $som->time( $activity->moving_time ), $som->get_time_label() );
if ( ! WPStrava::get_instance()->settings->hide_elevation ) {
// Translators: "climbing 100 ft."