Skip to content

Commit

Permalink
SixCycle Date Fixup
Browse files Browse the repository at this point in the history
.. PwxWriteFile was not converting the date to UTC
   before writing the output.

.. Sixcycle upload should use TCX anyway (!)
  • Loading branch information
liversedge committed Feb 13, 2017
1 parent 02a1074 commit 73cc18d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Cloud/SixCycle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ SixCycle::SixCycle(Context *context) : FileStore(context), context(context), roo
// how is data uploaded and downloaded?
uploadCompression = none;
downloadCompression = none;
filetype = FileStore::uploadType::PWX;
filetype = FileStore::uploadType::TCX;

session_token = ""; // not authenticated yet

Expand Down
2 changes: 1 addition & 1 deletion src/FileIO/PwxRideFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ PwxFileReader::writeRideFile(Context *context, const RideFile *ride, QFile &file

// time
QDomElement time = doc.createElement("time");
text = doc.createTextNode(ride->startTime().toString(Qt::ISODate));
text = doc.createTextNode(ride->startTime().toUTC().toString(Qt::ISODate));
time.appendChild(text);
root.appendChild(time);

Expand Down

0 comments on commit 73cc18d

Please sign in to comment.