diff options
author | Denis Dolzhenko <d.dolzhenko@samsung.com> | 2017-10-10 14:58:06 +0300 |
---|---|---|
committer | Denis Dolzhenko <d.dolzhenko@samsung.com> | 2017-10-10 14:58:06 +0300 |
commit | 608834e1f49951ce3f24710d426419816b160ac3 (patch) | |
tree | ec848eeb32c0599814fb71e4c9458abcb297cf3d | |
parent | a7d2d532cae59ace355954c6324163fec608956d (diff) | |
download | idle-clock-digital-608834e1f49951ce3f24710d426419816b160ac3.tar.gz idle-clock-digital-608834e1f49951ce3f24710d426419816b160ac3.tar.bz2 idle-clock-digital-608834e1f49951ce3f24710d426419816b160ac3.zip |
TizenRefApp-9549 Wrong time format in Arabictizen_4.0.IoT.p1_releasesubmit/tizen_4.0/20171011.111044
Change-Id: I3ac81dc66e276286297d30c1f5fd905d23055821
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
-rw-r--r-- | src/App/src/MainController.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/App/src/MainController.cpp b/src/App/src/MainController.cpp index e2fa387..98318af 100644 --- a/src/App/src/MainController.cpp +++ b/src/App/src/MainController.cpp @@ -105,13 +105,20 @@ void MainController::dispTime() void MainController::dispTime(time_t tt) { + static const std::string ltr = "\u202D"; // Left-to-Right Override + std::string hoursStr = ltr; + std::string minutesStr = ltr; + std::string timeStr = m_Formatter.getTime(tt); LOG("Time: ", timeStr); char *lexeme = strtok(const_cast<char*>(timeStr.c_str()), ":"); - std::string hoursStr = lexeme; + if (lexeme) + hoursStr += lexeme; + lexeme = strtok(nullptr, ":"); - std::string minutesStr = lexeme; + if (lexeme) + minutesStr += lexeme; m_pTimeView->setHours(hoursStr); m_pTimeView->setMinutes(minutesStr); |