This commit is contained in:
parent
7dc987ab2c
commit
a61ff1e1d7
@ -160,7 +160,8 @@ std::string spawncmd() {
|
|||||||
void async_clock(WINDOW* win) {
|
void async_clock(WINDOW* win) {
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(150));
|
std::this_thread::sleep_for(std::chrono::milliseconds(150));
|
||||||
while (true) {
|
while (true) {
|
||||||
auto now = std::chrono::system_clock::now();
|
auto now =
|
||||||
|
std::chrono::current_zone()->to_local(std::chrono::system_clock::now());
|
||||||
std::string time_str;
|
std::string time_str;
|
||||||
try {
|
try {
|
||||||
// Format just the time (HH:MM:SS)
|
// Format just the time (HH:MM:SS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user