aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcal.c
diff options
context:
space:
mode:
authorMorgan Seltzer <MorganSeltzer000@gmail.com>2021-06-07 17:13:23 -0400
committerLukas Fleischer <lfleischer@calcurse.org>2021-08-07 13:42:10 -0400
commite3fc73e0c76addc0893ad3ceeba7ef8442133a51 (patch)
tree16f5fe4e89f5ace43471754c170c936bc9103f4c /src/pcal.c
parent61ed5f835cae29ce6405ec34a7e310d5ea90327b (diff)
downloadcalcurse-e3fc73e0c76addc0893ad3ceeba7ef8442133a51.tar.gz
calcurse-e3fc73e0c76addc0893ad3ceeba7ef8442133a51.zip
Backend changes for first day of week
Previously only Sunday and Monday were allowed for the first day of the week, and was internally treated as a binary variable. This patch changes the backend so all days are accepted, a future patch will allow users to actually select other days. Addresses GitHub feature request #321. Signed-off-by: Morgan Seltzer <MorganSeltzer000@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/pcal.c')
-rw-r--r--src/pcal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcal.c b/src/pcal.c
index 78da0bb..16c3b9f 100644
--- a/src/pcal.c
+++ b/src/pcal.c
@@ -102,8 +102,8 @@ static void pcal_export_header(FILE * stream)
{
fputs("# calcurse pcal export\n", stream);
fputs("\n# =======\n# options\n# =======\n", stream);
- fprintf(stream, "opt -A -K -l -m -F %s\n",
- ui_calendar_week_begins_on_monday()? "Monday" : "Sunday");
+ fprintf(stream, "opt -A -K -l -m -F %s\n", get_wday_default_string(
+ ui_calendar_get_wday_start()));
fputs("# Display week number (i.e. 1-52) on every Monday\n",
stream);
fprintf(stream, "all monday in all week %%w\n");