From f156eb53457a9e4e34c1b96f9e54eb130dffd8a3 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 13 Apr 2015 16:21:22 +0300 Subject: Remove fatal error if strftime timestamp < 0. --- builtin.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'builtin.c') diff --git a/builtin.c b/builtin.c index dde3121c..7aeccd5f 100644 --- a/builtin.c +++ b/builtin.c @@ -1913,8 +1913,16 @@ do_strftime(int nargs) lintwarn(_("strftime: received non-numeric second argument")); (void) force_number(t2); clock_val = get_number_si(t2); - if (clock_val < 0) - fatal(_("strftime: second argument less than 0 or too big for time_t")); + /* + * 4/2015: This used to be here: + * + * if (clock_val < 0) + * fatal(_("strftime: second argument less than 0 or too big for time_t")); + * + * It is now disabled since some systems have strftime that works + * on times before the epoch. No arbritrary limits comes into + * play at this point. + */ fclock = (time_t) clock_val; DEREF(t2); } -- cgit v1.2.3