mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-27 06:19:51 -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user