From 541d673acde9e12a4d2fcd04cd4fd750f01c57e9 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Fri, 15 Jul 2016 03:14:37 +0200 Subject: [PATCH] Fixed year formatter / formatting --- src/blackcore/threadedreader.h | 2 +- src/blackmisc/testing.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/blackcore/threadedreader.h b/src/blackcore/threadedreader.h index 790e8839c..f7a48c5b8 100644 --- a/src/blackcore/threadedreader.h +++ b/src/blackcore/threadedreader.h @@ -39,7 +39,7 @@ namespace BlackCore //! Destructor virtual ~CThreadedReader(); - //! Thread safe, set update timestamp + //! Thread safe, get update timestamp //! \threadsafe QDateTime getUpdateTimestamp() const; diff --git a/src/blackmisc/testing.cpp b/src/blackmisc/testing.cpp index 1e162b5c5..e9ad3c3d6 100644 --- a/src/blackmisc/testing.cpp +++ b/src/blackmisc/testing.cpp @@ -102,8 +102,8 @@ namespace BlackMisc r.append(station.propertyByIndex({ CAtcStation::IndexPosition, CCoordinateGeodetic::IndexLatitudeAsString}).toQString()); r.append(station.propertyByIndex({ CAtcStation::IndexPosition, CCoordinateGeodetic::IndexLongitudeAsString}).toQString()); r.append(station.propertyByIndex({ CAtcStation::IndexRelativeDistance, CLength::IndexValueRounded2DigitsWithUnit}).toQString()); - r.append(station.propertyByIndex({ CAtcStation::IndexBookedFrom}).toDateTime().toString("YYYY-mm-dd hh:mm")); - r.append(station.propertyByIndex({ CAtcStation::IndexBookedUntil}).toDateTime().toString("YYYY-mm-dd hh:mm")); + r.append(station.propertyByIndex({ CAtcStation::IndexBookedFrom}).toDateTime().toString("yyyy-MM-dd hh:mm")); + r.append(station.propertyByIndex({ CAtcStation::IndexBookedUntil}).toDateTime().toString("yyyy-MM-dd hh:mm")); } else { @@ -112,8 +112,8 @@ namespace BlackMisc r.append(station.getPosition().latitudeAsString()); r.append(station.getPosition().longitudeAsString()); r.append(station.getRelativeDistance().toQString(true)); - r.append(station.getBookedFromUtc().toString("YYYY-mm-dd hh:mm")); - r.append(station.getBookedUntilUtc().toString("YYYY-mm-dd hh:mm")); + r.append(station.getBookedFromUtc().toString("yyyy-MM-dd hh:mm")); + r.append(station.getBookedUntilUtc().toString("yyyy-MM-dd hh:mm")); } return r; }