mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 00:06:59 +00:00
output: fix timestamp localization on html page
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
a905b50943
commit
c4a654a149
1 changed files with 2 additions and 0 deletions
|
|
@ -468,6 +468,8 @@ static void html_header(FILE *restrict f)
|
||||||
if (tmp == NULL) {
|
if (tmp == NULL) {
|
||||||
error(EXIT_FAILURE, errno, "html_header: localtime");
|
error(EXIT_FAILURE, errno, "html_header: localtime");
|
||||||
}
|
}
|
||||||
|
setlocale(LC_CTYPE, "");
|
||||||
|
setlocale(LC_NUMERIC, "");
|
||||||
if (strftime(outstr, sizeof(outstr), nl_langinfo(D_T_FMT), &result) == 0) {
|
if (strftime(outstr, sizeof(outstr), nl_langinfo(D_T_FMT), &result) == 0) {
|
||||||
error(EXIT_FAILURE, 0, "html_header: strftime returned 0");
|
error(EXIT_FAILURE, 0, "html_header: strftime returned 0");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue