TimeZone on Strava Upload

Issue #51 duplicate
Kellen created an issue

It appears that the timezone is not preserved during a Strava export (or possibly during the Concept2 import). See the attached screenshot, which shows the same workout in the Concept2 log (correct), and Strava (7 hours early).

This is causing all of my connected services (ie. IFTTT) to be confused.

Comments (18)

  1. Sander Roosendaal repo owner

    We try to set the timezone according the time zone info that Concept2 sends over. If the timezone info is not present, we cannot know the timezone of origin, and we set it to UTC

  2. Kellen reporter

    Are you saying that the Concept2 Log has a setting for timezone? I could only find a location (City/Province/Postal Code), which was already set correctly. I was unable to find a setting for timezone, how does it know?

  3. Kellen reporter

    I'm using ErgData, yes. So I guess they're the culprit? That's a shame, now all of my workouts are showing up on Strava and in my Google Calendar at the wrong time.

  4. Sander Roosendaal repo owner

    Do you have an iPhone? Please try Painsled. Your workflow would be different. Send the CSV stroke file to Workouts@rowsandall.com. From the site, export to both Strava and C2.

  5. Sander Roosendaal repo owner

    I will go through my code to see if I omit a time zone somewhere. Unfortunately time zone handling is unintuitive and done Inconsistently in different platforms. This will take time so don't expect it before Christmas.

  6. Gregory Smith

    I did a bit of digging around. As I understand the specifics here, the data for the workout is captured by ergdata, and then sync'ed to the concept2 logbook. Then a csv file is generated in the concept2 logbook page.

    This file has no time or date information in it at all. the behavior that rowsandall exhibits is reasonable. It sets the date and time to the time of the upload.

    If the user imports from the concept2 logbook directly on the rowsandall site, the workout time comes across as a local time since concept2 doesn't provide a time zone reference.

    The best suggestion to maintain consistency of linked sites is to manually edit the workout time in rowsandall after it is imported to be the correct UTC time. Then it will export right to google calendar and strava.

  7. Kellen reporter

    I do not have an iPhone, only Android. I do have an iPad which may work, but not the necessary iConnect cable to get it hooked up to my PM3. I tried a USB A to USB B adaptor with my regular iPad cable, but it doesn't work. I've read on the C2 website that the cable must be "Genuine Apple" which I guess means I need to buy it from Concept2.

    I have emailed the workout file as requested yesterday.

    Greg, thanks for your suggestion. How do I edit the Workout time in rowsandall? I was unable to find a way to do that. And I'm not sure it would help anyhow, the workout time shows correct after importing to rowsandall from Concept2 Log.

    rowsandall correct time.PNG

    Would another solution be to have a timezone setting as a part of my profile in rowsandall? And then when it handles files that are missing that information, it can add the correct timezone rather than just UTC as it does now?

    Thanks again! Kellen

  8. Sander Roosendaal repo owner

    Hi Kellen The time shows correct, but we set it to UTC (GMT) time, because we don't know the time zone. Before you export to Strava, edit the workout. From the My Workouts screen, click on the name of the workout. That will get you to the Workout edit. On the top left, you can change the time. timezone.PNG

    It's the "starttime" field. The trick is to set it to what time it would be in the UTC time zone at the time of your workout. The workout I am showing, I did it at 1:44pm Central European Time (UTC+1). The time correctly shows 12:44 and when I export to Strava, it shows 1:44pm in my local time zone.

    I am not eager to add a time zone setting. It would have to be a default time zone. I, for example, have used the rower on many continents. I think we should all write to Concept2 (ranking@concept2.com) and ask for ErgData to include the time zone. The Concept2 logbook actually has time zone in it's API, but it isn't using it. If, upon import to Rowsandall.com, Concept2 would send time zone info, all would be fine.

  9. Kellen reporter

    Thank you for the help, I can do that as a workaround until Concept2 updates their ErgData app.

    I emailed Concept2 with regards to that and received an immediate response. The rep (Dena Hirchak) indicated that David Hart is the best contact for this request, who's email address is davidh@concept2.com I believe. More emails to him may help?

    Thanks again everybody, enjoy your holidays!

    Kellen

  10. Sander Roosendaal repo owner

    Hi

    Yes I have emailed with David in the past. He is very helpful and reacts fast. Don't be too harsh on him. Deploying the API, and supporting the PM5 through ErgData is quite a big thing for a small company like C2.

    I will follow up with an email in January. It's holiday time now. Merry Christmas and keep rowing!

    Sander

  11. Kellen reporter

    Received this today:

    =====================

    From: Concept2 Ranking Ranking@concept2.com Date: Tue, Jan 3, 2017 at 8:21 AM Subject: Re: TimeZones in Data (ErgData) To: Kellen Westman

    Hi Kellen,

    Yes – we’ll look into this for a future release of ErgData.

    Please let me know if there’s anything else I can do to help.

    Best,

    David Hart Concept2

  12. Benjamin Millspaugh

    5 years later, time zone still appears to be set to UTC (i.e. when I see it off by 5 hours in Strava)…why not set it to the user’s time zone if there is no time zone info?

  13. Sander Roosendaal repo owner

    Hi Ben, Can you send me a reproduction path for the issue? We are solving this issue on the following ticket: https://bitbucket.org/sanderroosendaal/rowsandall/issues/594/concept2-logbook-import-timestamp-zone

    Let me check this over Christmas, as I think it has been resolved but I just didn’t close the ticket. For the reproduction path, please report your time zone setting on https://rowsandall.com/rowers/me/edit/ , a C2 workout ID, the start and end time and date on C2 (including time zone), the start time and time zone on Rowsandall, and the start time and time zone on Strava. Could you report this in the above-mentioned issue, which I will keep open until it has been resolved.

  14. Log in to comment