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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user