From c8af480f52b46e556d23ef012f3987aa3a0fc25b Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 11 Jan 2011 22:10:48 +0000 Subject: 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. --- src/day.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/day.c') diff --git a/src/day.c b/src/day.c index 4bcb5ec..17c2a31 100755 --- a/src/day.c +++ b/src/day.c @@ -1,4 +1,4 @@ -/* $calcurse: day.c,v 1.53 2010/03/20 10:54:44 culot Exp $ */ +/* $calcurse: day.c,v 1.54 2011/01/11 22:10:48 fleischer Exp $ */ /* * Calcurse - text-based organizer @@ -757,7 +757,7 @@ update_rept (struct rpt **rpt, const long start, struct conf *conf) int newmonth, newday, newyear; if (parse_date (timstr, conf->input_datefmt, - &newyear, &newmonth, &newday)) + &newyear, &newmonth, &newday, calendar_get_slctd_day ())) { t = start; lt = localtime (&t); -- cgit v1.2.3-54-g00ecf