commit fb9e0fd21b7210e2ff71cc364b2285b1231fff60
parent d78bd5a4f98fab9c7eb82837b0d783cdd28d00ca
Author: default <nobody@localhost>
Date: Sun, 13 Apr 2025 10:04:31 +0200
Mention the timezone in the 'post date and time' prompt.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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"),