Skip to content

Commit

Permalink
Add the timezone in date/time meter
Browse files Browse the repository at this point in the history
... just as done in clock meter.
  • Loading branch information
eworm-de committed Aug 21, 2024
1 parent c11ce2b commit ea376a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DateTimeMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static void DateTimeMeter_updateValues(Meter* this) {

struct tm result;
const struct tm* lt = localtime_r(&host->realtime.tv_sec, &result);
strftime(this->txtBuffer, sizeof(this->txtBuffer), "%F %H:%M:%S", lt);
strftime(this->txtBuffer, sizeof(this->txtBuffer), "%F %H:%M:%S %Z", lt);
}

const MeterClass DateTimeMeter_class = {
Expand Down

0 comments on commit ea376a9

Please sign in to comment.