summaryrefslogtreecommitdiff
path: root/src/recur.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-01-11 22:10:48 +0000
committerLukas Fleischer <calcurse@cryptocrack.de>2011-01-11 22:10:48 +0000
commitc8af480f52b46e556d23ef012f3987aa3a0fc25b (patch)
treea744542a7b58f87912ad811cd6b0c0743512fbe1 /src/recur.c
parentb8779e714a18b00e5c3f8172e1c425570ff8acf0 (diff)
downloadcalcurse-c8af480f52b46e556d23ef012f3987aa3a0fc25b.zip
Make parse_date accept several short forms.
Short forms are only accepted in interactive mode (e.g. when using the "Go to" function, editing a recurrent item's end date, and so on). Samples: "1/1/30" for "01/01/2030", "26" for the 26th of the currently selected month/year or "3/1" for Mar 01 (or Jan 03, depending on the date format) of the currently selected year.
Diffstat (limited to 'src/recur.c')
-rwxr-xr-xsrc/recur.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/recur.c b/src/recur.c
index 34910a4..096c961 100755
--- a/src/recur.c
+++ b/src/recur.c
@@ -1,4 +1,4 @@
-/* $calcurse: recur.c,v 1.54 2010/03/20 10:54:47 culot Exp $ */
+/* $calcurse: recur.c,v 1.55 2011/01/11 22:10:48 fleischer Exp $ */
/*
* Calcurse - text-based organizer
@@ -971,7 +971,7 @@ recur_repeat_item (struct conf *conf)
else
{
if (parse_date (user_input, conf->input_datefmt,
- &year, &month, &day))
+ &year, &month, &day, calendar_get_slctd_day ()))
{
t = p->start;
lt = localtime (&t);