diff options
Diffstat (limited to 'win/tclWinTime.c')
| -rw-r--r-- | win/tclWinTime.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/win/tclWinTime.c b/win/tclWinTime.c index b18c83f..088c02b 100644 --- a/win/tclWinTime.c +++ b/win/tclWinTime.c @@ -754,24 +754,7 @@ TclpGetDate( * daylight savings time before the epoch. */ - /* - * Hm, Borland's localtime manages to return NULL under certain - * circumstances (e.g. wintime.test, test 1.2). Nobody tests for this, - * since 'localtime' isn't supposed to do this, possibly leading to - * crashes. - * - * Patch: We only call this function if we are at least one day into - * the epoch, else we handle it ourselves (like we do for times < 0). - * H. Giese, June 2003 - */ - -#ifdef __BORLANDC__ -#define LOCALTIME_VALIDITY_BOUNDARY SECSPERDAY -#else -#define LOCALTIME_VALIDITY_BOUNDARY 0 -#endif - - if (t2 >= LOCALTIME_VALIDITY_BOUNDARY) { + if (t2 >= 0) { return TclpLocaltime(&t2); } |
