summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2025-04-13 10:04:31 +0200
committerGravatar default2025-04-13 10:04:31 +0200
commitfb9e0fd21b7210e2ff71cc364b2285b1231fff60 (patch)
tree01ea8d595b30a6267d0df2b571708a1615844107 /html.c
parentAdded more timezones. (diff)
downloadpenes-snac2-fb9e0fd21b7210e2ff71cc364b2285b1231fff60.tar.gz
penes-snac2-fb9e0fd21b7210e2ff71cc364b2285b1231fff60.tar.xz
penes-snac2-fb9e0fd21b7210e2ff71cc364b2285b1231fff60.zip
Mention the timezone in the 'post date and time' prompt.
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/html.c b/html.c
index b04e001..68a6b73 100644
--- a/html.c
+++ b/html.c
@@ -455,13 +455,15 @@ xs_html *html_note(snac *user, const char *summary,
455 } 455 }
456 456
457 if (edit_id == NULL || is_draft || is_scheduled(user, edit_id)) { 457 if (edit_id == NULL || is_draft || is_scheduled(user, edit_id)) {
458 xs *pdat = xs_fmt(L("Post date and time (timezone: %s):"), xs_dict_get_def(user->config, "tz", "UTC"));
459
458 xs_html_add(form, 460 xs_html_add(form,
459 xs_html_tag("p", 461 xs_html_tag("p",
460 xs_html_tag("details", 462 xs_html_tag("details",
461 xs_html_tag("summary", 463 xs_html_tag("summary",
462 xs_html_text(L("Scheduled post..."))), 464 xs_html_text(L("Scheduled post..."))),
463 xs_html_tag("p", 465 xs_html_tag("p",
464 xs_html_text(L("Post date and time:")), 466 xs_html_text(pdat),
465 xs_html_sctag("br", NULL), 467 xs_html_sctag("br", NULL),
466 xs_html_sctag("input", 468 xs_html_sctag("input",
467 xs_html_attr("type", "date"), 469 xs_html_attr("type", "date"),