From 4bdc1c4cad303be116438cb2577340e7284db306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Thu, 4 May 2017 20:11:39 +0200 Subject: [PATCH] Version 16.205.1 --- js/swad16.205.js | 31 ------ swad_changelog.h | 3 +- swad_layout.c | 15 +-- swad_text.c | 243 ----------------------------------------------- 4 files changed, 3 insertions(+), 289 deletions(-) diff --git a/js/swad16.205.js b/js/swad16.205.js index 535aabcb0..afb4fc797 100644 --- a/js/swad16.205.js +++ b/js/swad16.205.js @@ -36,37 +36,6 @@ var NumUsrsCon; var ListSeconds = []; var countClockConnected = 0; -/****************** Write a date in client local time ************************/ -//id is the id of the HTML element in which date will be written -//TimeUTC is the date-time to write in UTC UNIX time format -/* -function writeLocalDateFromUTC (id,TimeUTC,StrToday) { - var today = new Date(); - var todayYea = today.getFullYear(); - var todayMon = today.getMonth() + 1; - var todayDay = today.getDate(); - var d = new Date(); - var Yea; - var Mon; - var Day; - var StrMon; - var StrDay; - - d.setTime(TimeUTC * 1000); - Yea = d.getFullYear(); - Mon = d.getMonth() + 1; - Day = d.getDate(); - StrMon = ((Mon < 10) ? '0' : '') + Mon; - StrDay = ((Day < 10) ? '0' : '') + Day; - - if (Yea == todayYea && Mon == todayMon && Day == todayDay && // Today - StrToday.length) - document.getElementById(id).innerHTML = StrToday; - else - document.getElementById(id).innerHTML = Yea + '-' + StrMon + '-' + StrDay; - -} -*/ /*************** Write a date-time in client local time **********************/ // id is the id of the HTML element in which date-time will be written // TimeUTC is the date-time to write in UTC UNIX time format diff --git a/swad_changelog.h b/swad_changelog.h index 5e5a411ee..5ed21aae4 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -233,13 +233,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.205 (2017-05-04)" +#define Log_PLATFORM_VERSION "SWAD 16.205.1 (2017-05-04)" #define CSS_FILE "swad16.205.css" #define JS_FILE "swad16.205.js" // 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 16.205.1: May 04, 2017 Removed unused code. (218440 lines) Version 16.205: May 04, 2017 Dates written depending on user's preferences. (218721 lines) Version 16.204: May 04, 2017 Form in preferences to change date format. (218656 lines) 3 changes necessary in database: diff --git a/swad_layout.c b/swad_layout.c index 21e16d4aa..60a931e84 100644 --- a/swad_layout.c +++ b/swad_layout.c @@ -465,11 +465,9 @@ static void Lay_WriteRedirToMyLangOnViewUsrAgd (void) static void Lay_WriteScripts (void) { extern struct Act_Actions Act_Actions[Act_NUM_ACTIONS]; - extern const char *Txt_MONTHS_CAPS[12]; extern const char *Txt_DAYS_CAPS[7]; extern const char *Txt_DAYS_SMALL[7]; extern const char *Txt_Exam_of_X; - unsigned Month; unsigned DayOfWeek; /* 0, 1, 2, 3, 4, 5, 6 */ unsigned NumHld; unsigned NumExamAnnouncement; // Number of exam announcement @@ -508,18 +506,7 @@ static void Lay_WriteScripts (void) /***** Write script to initialize variables used to draw months *****/ fprintf (Gbl.F.Out,"