aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-04-13 10:04:31 +0200
committerdefault <nobody@localhost>2025-04-13 10:04:31 +0200
commitfb9e0fd21b7210e2ff71cc364b2285b1231fff60 (patch)
tree01ea8d595b30a6267d0df2b571708a1615844107
parentd78bd5a4f98fab9c7eb82837b0d783cdd28d00ca (diff)
Mention the timezone in the 'post date and time' prompt.
-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,
}
if (edit_id == NULL || is_draft || is_scheduled(user, edit_id)) {
+ xs *pdat = xs_fmt(L("Post date and time (timezone: %s):"), xs_dict_get_def(user->config, "tz", "UTC"));
+
xs_html_add(form,
xs_html_tag("p",
xs_html_tag("details",
xs_html_tag("summary",
xs_html_text(L("Scheduled post..."))),
xs_html_tag("p",
- xs_html_text(L("Post date and time:")),
+ xs_html_text(pdat),
xs_html_sctag("br", NULL),
xs_html_sctag("input",
xs_html_attr("type", "date"),