You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lines.push_back(fmt::sprintf(to_string(LocalizationHelper::Localize(L"Start Julian day: %s", L"Template for displaying when start time cannot be correctly formatted by the system")), to_string(numberFormatter.FormatDouble(startJulianDay))));
136
+
auto rounded = std::round(startJulianDay * 10000.0) / 10000.0;
label = to_hstring(fmt::sprintf(to_string(LocalizationHelper::Localize(L"Start Julian day: %s", L"Template for displaying when start time cannot be correctly formatted by the system")), to_string(timeString)));
127
139
}
128
140
else
129
141
{
130
142
auto startTime = CelestiaHelper::DateTimeFromJulianDay(startJulianDay);
131
-
lines.push_back(fmt::sprintf(to_string(LocalizationHelper::Localize(L"Start time: %s", L"Template for the start time of a body, usually a spacecraft")), to_string(dateFormatter.Format(startTime))));
143
+
timeString = dateFormatter.Format(startTime);
144
+
label = to_hstring(fmt::sprintf(to_string(LocalizationHelper::Localize(L"Start time: %s", L"Template for the start time of a body, usually a spacecraft")), to_string(timeString)));
lines.push_back(fmt::sprintf(to_string(LocalizationHelper::Localize(L"End Julian day: %s", L"Template for displaying when end time cannot be correctly formatted by the system")), to_string(numberFormatter.FormatDouble(endJulianDay))));
154
+
auto rounded = std::round(endJulianDay * 10000.0) / 10000.0;
label = to_hstring(fmt::sprintf(to_string(LocalizationHelper::Localize(L"End Julian day: %s", L"Template for displaying when end time cannot be correctly formatted by the system")), to_string(timeString)));
140
157
}
141
158
else
142
159
{
143
160
auto endTime = CelestiaHelper::DateTimeFromJulianDay(endJulianDay);
144
-
lines.push_back(fmt::sprintf(to_string(LocalizationHelper::Localize(L"End time: %s", L"Template for the end time of a body, usually a spacecraft")), to_string(dateFormatter.Format(endTime))));
161
+
timeString = dateFormatter.Format(endTime);
162
+
label = to_hstring(fmt::sprintf(to_string(LocalizationHelper::Localize(L"End time: %s", L"Template for the end time of a body, usually a spacecraft")), to_string(timeString)));
0 commit comments