diff options
| author | 2025-04-13 10:04:31 +0200 | |
|---|---|---|
| committer | 2025-04-13 10:04:31 +0200 | |
| commit | fb9e0fd21b7210e2ff71cc364b2285b1231fff60 (patch) | |
| tree | 01ea8d595b30a6267d0df2b571708a1615844107 | |
| parent | Added more timezones. (diff) | |
| download | penes-snac2-fb9e0fd21b7210e2ff71cc364b2285b1231fff60.tar.gz penes-snac2-fb9e0fd21b7210e2ff71cc364b2285b1231fff60.tar.xz penes-snac2-fb9e0fd21b7210e2ff71cc364b2285b1231fff60.zip | |
Mention the timezone in the 'post date and time' prompt.
| -rw-r--r-- | html.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -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"), |