From 948eef88c042c324f237ec9cf99ba8b6ae313821 Mon Sep 17 00:00:00 2001 From: "David G. Holm" Date: Thu, 20 Jan 2000 19:20:37 +0000 Subject: [PATCH] See ChangeLog entry 2000-01-20 14:15 GMT-5 David G. Holm --- harbour/ChangeLog | 7 +++++++ harbour/source/rtl/dates.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 2eb481457a..6f374c58e3 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,10 @@ +2000-01-20 14:15 GMT-5 David G. Holm + + * source/rtl/dates.c + ! Corrected CTOD() to include 0 as a year subject to SET EPOCH + (the range had been accidentally set to 1 through 99 instead + of 0 through 99). + 20000119-21:21 GMT+3 Alexander Kresin * source/pp/hbpp.c * Few bugs fixed, reported by Matteo Baccan and Dave Pearson diff --git a/harbour/source/rtl/dates.c b/harbour/source/rtl/dates.c index 1d6bc22863..36c33309da 100644 --- a/harbour/source/rtl/dates.c +++ b/harbour/source/rtl/dates.c @@ -317,7 +317,7 @@ HARBOUR HB_CTOD( void ) } } - if( y_value > 0 && y_value < 100 ) + if( y_value >= 0 && y_value < 100 ) { count = hb_set.HB_SET_EPOCH % 100; digit = hb_set.HB_SET_EPOCH / 100;