Skip to content

Commit

Permalink
Interpret dates from JSON as UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaseberle committed May 8, 2023
1 parent df1fa5b commit c834bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BookedController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ QString BookedController::facilityString() const {
}

QDateTime BookedController::starts() const {
return QDateTime::fromString(timeFrom, "yyyy-MM-dd HH:mm:ss");
return QDateTime::fromString(timeFrom + "Z", "yyyy-MM-dd HH:mm:sst");
}

QDateTime BookedController::ends() const {
return QDateTime::fromString(timeTo, "yyyy-MM-dd HH:mm:ss");
return QDateTime::fromString(timeTo + "Z", "yyyy-MM-dd HH:mm:sst");
}

0 comments on commit c834bab

Please sign in to comment.