8 void status_datetime(GlobalData *g)
11 char text[32] = { 0 };
21 if (nows == ((time_t) -1)) {
22 s.color = "#FF0000"; // red
23 s.text = "ERROR: DATETIME";
25 line_append_item(g, &s);
27 nowtm = localtime(&nows);
30 snprintf(text, sizeof(text),
34 (nowtm->tm_year) + 1900
36 line_append_item(g, &s);
38 s.color = "#BEBEBE"; // grey
39 snprintf(text, sizeof(text),
51 line_append_item(g, &s);