X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fpivot-table.c;h=924a14cc9b1490eff01f5f50b82ae5c55e31445d;hb=56e6166660c0f1388cad4cb4d3189e026bc84dd5;hp=3d1ccbaa585199206fe2352701118fe1cd17d4ff;hpb=3c15b41c0360cc66ad9608a18ba379112f10b5b9;p=pspp diff --git a/src/output/pivot-table.c b/src/output/pivot-table.c index 3d1ccbaa58..924a14cc9b 100644 --- a/src/output/pivot-table.c +++ b/src/output/pivot-table.c @@ -76,6 +76,7 @@ pivot_area_get_default_style (enum pivot_area area) .bold = BOLD, \ .fg = { [0] = CELL_COLOR_BLACK, [1] = CELL_COLOR_BLACK}, \ .bg = { [0] = CELL_COLOR_WHITE, [1] = CELL_COLOR_WHITE}, \ + .size = 9, \ .typeface = (char *) "Sans Serif", \ }, \ } @@ -1486,8 +1487,11 @@ pivot_table_dump (const struct pivot_table *table, int indentation) if (table->date) { indent (indentation); - char buf[26]; - printf ("date: %s", ctime_r (&table->date, buf)); + + struct tm *tm = localtime (&table->date); + printf ("date: %d-%02d-%02d %d:%02d:%02d\n", tm->tm_year + 1900, + tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, + tm->tm_sec); } indent (indentation);