Raistlfiren / garmin-csv-plan

A quick n' dirty way of "automating" training plans into Garmin Connect.
https://raistlfiren.github.io/garmin-csv-plan/
37 stars 6 forks source link

Bug fix for time durations less than 1 full minute #22

Closed stevenbitner closed 3 years ago

Raistlfiren commented 3 years ago

Can you show me the workout text? It works putting 00:30.

stevenbitner commented 3 years ago

I was using a single zero, similar to what I do in the Garmin web interface. Php parses that as an (empty) int, but changing to 00:30 seems to force it to be parsed as a (non-empty) string

- repeat: 3
  - repeat: 5
    - run: 0:30
    - recover: lap-button
  - rest: 2:30
Raistlfiren commented 3 years ago

Oh yes, derp! Thank you for submitting this. I should have taken that into consideration.