X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..3af7654d5105d051ca3442c0da04911ce1207fb7:/lib/dateparse.c diff --git a/lib/dateparse.c b/lib/dateparse.c index cb24266..a620f81 100644 --- a/lib/dateparse.c +++ b/lib/dateparse.c @@ -32,6 +32,10 @@ * This set of patterns is designed to parse a specific time of a specific day, * since that's what the scheduler needs. Other requirements might need other * pattern lists. + * + * NB DisOrder now uses my_strptime() instead of the system strptime(). This + * has some bits missing. Therefore check carefuly before adding to this + * table. */ static const char *const datemsk[] = { /* ISO format */ @@ -58,11 +62,11 @@ time_t dateparse(const char *s) { case 0: return mktime(&t); case 7: - fatal(0, "date string '%s' not in a recognized format", s); + disorder_fatal(0, "date string '%s' not in a recognized format", s); case 8: - fatal(0, "date string '%s' not representable", s); + disorder_fatal(0, "date string '%s' not representable", s); default: - fatal(0, "date string '%s' produced unexpected error %d", s, rc); + disorder_fatal(0, "date string '%s' produced unexpected error %d", s, rc); } }