From a207626ade9cb87e25a3b406d2036a3d88be818f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Tue, 22 Dec 2015 09:38:32 +0100 Subject: [PATCH] Version 15.71.3 --- swad_changelog.h | 3 ++- swad_record.c | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index acd897f45..57ff4d146 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -118,12 +118,13 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.71.2 (2015/12/21)" +#define Log_PLATFORM_VERSION "SWAD 15.71.3 (2015-12-22)" #define CSS_FILE "swad15.65.1.css" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1 /* + Version 15.71.3: Dec 22, 2015 Changes in birthday range of years. (187669 lines) Version 15.71.2: Dec 21, 2015 Fixed bugs in removing old files in briefcase. (187666 lines) Version 15.71.1: Dec 21, 2015 Fixed bugs in removing old files in briefcase. (187665 lines) Version 15.71: Dec 21, 2015 Removing old files in briefcase. Finished. (187614 lines) diff --git a/swad_record.c b/swad_record.c index fcfb5a8a5..3364c9ba7 100644 --- a/swad_record.c +++ b/swad_record.c @@ -59,6 +59,10 @@ extern struct Act_Actions Act_Actions[Act_NUM_ACTIONS]; #define Rec_INSTITUTION_LOGO_SIZE 64 #define Rec_DEGREE_LOGO_SIZE 64 + +#define Rec_USR_MIN_AGE 12 // years old +#define Rec_USR_MAX_AGE 120 // years old + #define Rec_SHOW_OFFICE_HOURS_DEFAULT true /*****************************************************************************/ @@ -2850,8 +2854,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView, if (ShowData) { if (DataForm) - Dat_WriteFormDate (Gbl.Now.Date.Year - 99, - Gbl.Now.Date.Year - 16, + Dat_WriteFormDate (Gbl.Now.Date.Year - Rec_USR_MAX_AGE, + Gbl.Now.Date.Year - Rec_USR_MIN_AGE, "Birth", &(UsrDat->Birthday), false,false);