mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:00:04 +00:00
Update most instances of current time to use a time offset
This commit is contained in:
parent
e0a4dee72b
commit
bd27d0e562
19 changed files with 48 additions and 38 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include <scwx/qt/settings/general_settings.hpp>
|
||||
#include <scwx/qt/util/time.hpp>
|
||||
#include <scwx/util/logger.hpp>
|
||||
#include <scwx/util/time.hpp>
|
||||
|
||||
#include <QTimer>
|
||||
|
||||
|
|
@ -81,8 +82,7 @@ AnimationDockWidget::AnimationDockWidget(QWidget* parent) :
|
|||
p->timeZone_ = date::get_tzdb().locate_zone("UTC");
|
||||
#endif
|
||||
const std::chrono::sys_seconds currentTimePoint =
|
||||
std::chrono::floor<std::chrono::minutes>(
|
||||
std::chrono::system_clock::now());
|
||||
std::chrono::floor<std::chrono::minutes>(scwx::util::time::now());
|
||||
p->SetTimePoint(currentTimePoint);
|
||||
|
||||
// Update maximum date on a timer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue