Fix with time advancing

Add UTC postfix to DashboardItemDate
This commit is contained in:
Alexander Bock
2018-06-21 11:49:52 -04:00
parent 4920c434da
commit 0dd7ea19c5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -116,14 +116,14 @@ void DashboardItemDate::render(glm::vec2& penPosition) {
RenderFont(
*_font,
penPosition,
"Date: " + OsEng.timeManager().time().UTC()
fmt::format("Date: {} UTC", OsEng.timeManager().time().UTC())
);
}
glm::vec2 DashboardItemDate::size() const {
return ghoul::fontrendering::FontRenderer::defaultRenderer().boundingBox(
*_font,
"Date: " + OsEng.timeManager().time().UTC()
fmt::format("Date: {} UTC", OsEng.timeManager().time().UTC())
).boundingBox;
}
+1 -1
View File
@@ -227,7 +227,7 @@ int time_advancedTime(lua_State* L) {
modifier.begin(),
modifier.end(),
[](unsigned char c) {
const bool digit = std::isdigit(c) == 1;
const bool digit = std::isdigit(c) != 0;
const bool isDot = c == '.';
return !digit && !isDot;
}