mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-12 22:39:09 -05:00
Fix with time advancing
Add UTC postfix to DashboardItemDate
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user