mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-09-01 19:08:18 +00:00
clock display fix
This commit is contained in:
@@ -205,7 +205,7 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
|
||||
uint32_t now = getRTCClock()->getCurrentTime();
|
||||
time_t t = (time_t)now;
|
||||
struct tm *tm = gmtime(&t);
|
||||
snprintf(reply, CLI_REPLY_SIZE, "Clock: %02d:%02d - %d/%d/%d UTC",
|
||||
snprintf(reply, CLI_REPLY_SIZE, "%02d:%02d - %d/%d/%d UTC",
|
||||
tm->tm_hour, tm->tm_min, tm->tm_mday, tm->tm_mon + 1, tm->tm_year + 1900);
|
||||
} else if (memcmp(command, "time ", 5) == 0) {
|
||||
uint32_t secs = _atoi(&command[5]);
|
||||
|
||||
Reference in New Issue
Block a user