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;