mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:40:05 +00:00
Display time zone according to settings
This commit is contained in:
parent
5fb9dc6a5f
commit
d3375de968
4 changed files with 44 additions and 15 deletions
|
|
@ -180,13 +180,12 @@ Level3ProductView::GetDescriptionFields() const
|
|||
util::ClockFormat clockFormat = util::GetClockFormat(
|
||||
settings::GeneralSettings::Instance().clock_format().GetValue());
|
||||
|
||||
const scwx::util::time_zone* currentZone;
|
||||
auto radarProductManager = radar_product_manager();
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
currentZone = std::chrono::current_zone();
|
||||
#else
|
||||
currentZone = date::current_zone();
|
||||
#endif
|
||||
const scwx::util::time_zone* currentZone =
|
||||
(radarProductManager != nullptr) ?
|
||||
radarProductManager->default_time_zone() :
|
||||
nullptr;
|
||||
|
||||
auto descriptionBlock = p->graphicMessage_->description_block();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue