Comments (4)
I think Sigma Data Center handles/stores (some?) dates in a local format and your locale is different than the one used in fit2slf (which generates format for the default locale "C"). That's why the error "could not convert string value to date" occurs. I could generalize the date formatting (in routine PrintSlfHeader, call to POSIX::strftime), but there is a problem with UTC offset, which is not added to the normal "%c" locale representation.
Could you please generate one log file from your Sigma Data Center to see what your format of date is?
You can also check if your converted log file imports successfully after you manually modify the date to your local format. Search for "fileDate", "dateCode" and "startDate" and fix the date format.
from garmin-fit.
Hi,
thanks for your very quick response. Really appriciate that.
I modified the input.slf I´ve generated with the date format that I see when I create an .slf export from the Sigma Data Center.
But still get the same error.
I´ve attached mail a zip file containing an export from the Sigma Data Center and the generated input.slf.
Thanks again for your work and I would love to donate you some money If we could get this working.
Cheers
from garmin-fit.
I've checked your input.slf and the problem is in "startDate" only. Are you sure "Sa Okt ..." is the right format? Shouldn't it be "Sam Okt ..." (a three letter day abbreviation)? If I use "Sat Oct" (as I am using default US locale), I can successfully import your file. The other file has default "C" format, so it didn't help much.
from garmin-fit.
@mrihtar, i´ve change the date format in all 3 places ("fileDate", "dateCode" and "startDate") to the english 3 letter format (Sat ... Oct...) and now it works. Would it be possible to include this translation in your script?
from garmin-fit.
Related Issues (20)
- Can't convert fit-File from Wahoo Elemnt HOT 6
- fitdump.pl message_index Support (text and JSON) HOT 2
- import virtual Ride from Zwift via Garmin HOT 2
- can't convert fit File exported from FitFileRepairTool HOT 2
- Newer profiles HOT 4
- fit2gpx.pl writes lat="0" lon="0" if position is not defined in fit file HOT 1
- Error when converting a fit file from wahoo element with actual firmware HOT 2
- File causing endless loop HOT 1
- Developer data with fit_base_type_id=0=enum is not respected HOT 1
- fit2gpx - no gpx-entries when lat and log are zero HOT 1
- Add calculation of absolute timestamp fields from timestamp_16
- custom ini file HOT 1
- Undefined subroutine &Garmin::FIT::unpackfiltr_uint64 called HOT 2
- Problem with time_created HOT 1
- Incorrect Altitude in Sigma SLF file HOT 1
- Small typo HOT 1
- time off, calories off, avg. speed missing, work off [PC Sport (VDO) → Fit Export → Sigma Data Center] HOT 1
- Add Shimano Di2 shift count support and Edge sweat loss units HOT 1
- Missing Values in GPX file HOT 1
- Localized month names may be problematic
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garmin-fit.